diff options
| author | 2020-03-07 14:46:13 +0100 | |
|---|---|---|
| committer | 2020-03-07 14:46:13 +0100 | |
| commit | 62c59c2c82d16d3e77ddc7bf3785e739d94de660 (patch) | |
| tree | b627a31561b59877f7ed832d0712cd50c9b735e2 /bot/bot.py | |
| parent | Deseasonify: remove reference to non-existent task, redundant attr (diff) | |
Deseasonify: create daily tasks inside cog init; wait until ready
Previously, the cog was being instantiated once: once to launch the
task, and once to be registered under `bot`. Now, the cog is only
created once, and the task is built inside the cog's init.
Since cogs are now loaded before the bot connects, the tasks need to
wait before the bot's cache is ready, to ensure that the channel is
found.
Diffstat (limited to 'bot/bot.py')
0 files changed, 0 insertions, 0 deletions