aboutsummaryrefslogtreecommitdiffstats
path: root/bot/constants.py
diff options
context:
space:
mode:
authorGravatar Sebastiaan Zeeff <[email protected]>2020-12-01 22:28:16 +0100
committerGravatar Sebastiaan Zeeff <[email protected]>2020-12-01 22:28:16 +0100
commit575fedc0b4b22c712c541f7b49311ce2d02e9880 (patch)
treec112f5effacc1fa009595af2df91b218adb124ae /bot/constants.py
parentLet status update task sleep until the AoC starts (diff)
Ensure status countdown waits for bot start-up
Trying to change the rich presence status of the bot too early in the bot's start-up sequence will cause the task to fail. To make it wait, I've added a `bot.wait_until_guild_available` point before the main loop of the task starts. This seems to solve the issue reliably, despite the `guild_available` event not being directly related to when the bot's connection with the API is ready to accept presence updates. However, the `ready` event is know to fire too early, according to the discord.py community.
Diffstat (limited to 'bot/constants.py')
0 files changed, 0 insertions, 0 deletions