1
0
Fork 0
mirror of synced 2024-05-03 04:02:28 +12:00

Honestly, no idea how the fuck this worked before? That's not how that works...

This commit is contained in:
phxntxm 2019-01-28 23:56:34 -06:00
parent 527d4b19be
commit 6269510bf9

View file

@ -75,11 +75,11 @@ class Picarto:
await self.bot.wait_until_ready()
while not self.bot.is_closed():
await self.check_channels()
await asyncio.sleep(30)
except Exception as error:
with open("error_log", 'a') as f:
traceback.print_tb(error.__traceback__, file=f)
print('{0.__class__.__name__}: {0}'.format(error), file=f)
finally:
await asyncio.sleep(30)
async def check_channels(self):