1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-27 13:34:28 +00:00

Wait until bot is ready

This commit is contained in:
Steffo 2018-11-18 17:42:49 +01:00
parent a6bae4b91b
commit 1ac40b82fb

View file

@ -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()