Skip to content
Snippets Groups Projects
Commit fee6679f authored by dnns01's avatar dnns01
Browse files

fix $11e - wait with motivation loop until bot is ready

parent e7c8df45
Branches
No related tags found
No related merge requests found
...@@ -166,3 +166,7 @@ class TextCommandsCog(commands.Cog): ...@@ -166,3 +166,7 @@ class TextCommandsCog(commands.Cog):
await channel.send(random.choice(texts)) await channel.send(random.choice(texts))
self.motivation_loop.change_interval(hours=1 + (random.random() * 12)) self.motivation_loop.change_interval(hours=1 + (random.random() * 12))
@motivation_loop.before_loop
async def before_motivation_loop(self):
await self.bot.wait_until_ready()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment