1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-24 03:54:20 +00:00

Int, not str

This commit is contained in:
Steffo 2018-11-18 17:55:00 +01:00
parent d98cd5966b
commit 1496258e54

View file

@ -635,7 +635,7 @@ class RoyalDiscordBot(discord.Client):
async def activity_task(self): async def activity_task(self):
await self.wait_until_ready() await self.wait_until_ready()
time_to_wait = config["Discord"]["activityreport_sample_time"] time_to_wait = int(config["Discord"]["activityreport_sample_time"])
while True: while True:
await self.create_activityreport() await self.create_activityreport()
logger.debug(f"Waiting {time_to_wait} seconds before the next record.") logger.debug(f"Waiting {time_to_wait} seconds before the next record.")