mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-24 03:54:20 +00:00
Wait until bot is ready
This commit is contained in:
parent
a6bae4b91b
commit
1ac40b82fb
1 changed files with 1 additions and 0 deletions
|
@ -634,6 +634,7 @@ class RoyalDiscordBot(discord.Client):
|
||||||
logger.info("ActivityReport created.")
|
logger.info("ActivityReport created.")
|
||||||
|
|
||||||
async def activity_task(self):
|
async def activity_task(self):
|
||||||
|
await self.wait_until_ready()
|
||||||
time_to_wait = config["Discord"]["activityreport_sample_time"]
|
time_to_wait = config["Discord"]["activityreport_sample_time"]
|
||||||
while True:
|
while True:
|
||||||
await self.create_activityreport()
|
await self.create_activityreport()
|
||||||
|
|
Loading…
Reference in a new issue