diff options
Diffstat (limited to 'bot/exts')
| -rw-r--r-- | bot/exts/christmas/advent_of_code/_helpers.py | 4 | 
1 files changed, 4 insertions, 0 deletions
| diff --git a/bot/exts/christmas/advent_of_code/_helpers.py b/bot/exts/christmas/advent_of_code/_helpers.py index 57ad001a..9ba4d9be 100644 --- a/bot/exts/christmas/advent_of_code/_helpers.py +++ b/bot/exts/christmas/advent_of_code/_helpers.py @@ -411,6 +411,10 @@ async def countdown_status(bot: Bot) -> None:      # Log that we're going to start with the countdown status.      log.info("The Advent of Code has started or will start soon, starting countdown status.") +    # Trying to change status too early in the bot's startup sequence will fail +    # the task. Waiting until this event seems to work well. +    await bot.wait_until_guild_available() +      # Calculate when the task needs to stop running. To prevent the task from      # sleeping for the entire year, it will only wait in the currently      # configured year. This means that the task will only start hibernating once | 
