From 1ac40b82fb927321cc5c07f699949dffbe9a31aa Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Sun, 18 Nov 2018 17:42:49 +0100 Subject: [PATCH] Wait until bot is ready --- discordbot.py | 1 + 1 file changed, 1 insertion(+) diff --git a/discordbot.py b/discordbot.py index e32b510e..67594819 100644 --- a/discordbot.py +++ b/discordbot.py @@ -634,6 +634,7 @@ class RoyalDiscordBot(discord.Client): logger.info("ActivityReport created.") async def activity_task(self): + await self.wait_until_ready() time_to_wait = config["Discord"]["activityreport_sample_time"] while True: await self.create_activityreport()