mirror of
https://github.com/supleed2/gondilinabot-python.git
synced 2024-11-10 01:35:50 +00:00
Fix Logging
Portainer does not support buffered output, replace using Bot status instead
This commit is contained in:
parent
43057b949c
commit
fdb7a2bb6e
8
app.py
8
app.py
|
@ -70,7 +70,13 @@ async def on_message(message):
|
||||||
print("Replied to " + message.author.name + " with Dad Joke")
|
print("Replied to " + message.author.name + " with Dad Joke")
|
||||||
else:
|
else:
|
||||||
idleMessageCounter += 1
|
idleMessageCounter += 1
|
||||||
print("Idle Message Counter: " + str(idleMessageCounter), end="\r")
|
if idleMessageCounter % 5 == 0:
|
||||||
|
await bot.change_presence(
|
||||||
|
status=discord.Status.online,
|
||||||
|
activity=discord.Game(
|
||||||
|
name="with Godlina [" + str(idleMessageCounter) + "]"
|
||||||
|
),
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
with open("secrets.yaml") as stream:
|
with open("secrets.yaml") as stream:
|
||||||
|
|
Loading…
Reference in a new issue