cancel change_status loop on cog reload
@@ -10,6 +10,9 @@ class Status(commands.Cog):
self.change_status.start()
+ def cog_unload(self):
+ self.change_status.cancel()
+
@tasks.loop(minutes=45)
async def change_status(self):
await self.bot.change_presence(activity=discord.Game(name=random.choice(self.d.playing_list)))
