remove old and unused logs at start and guild leaving

This commit is contained in:
Klemek
2021-04-09 12:19:43 +02:00
parent 6cacb832bf
commit 48c4e82cdf
3 changed files with 38 additions and 1 deletions
+14
View File
@@ -39,6 +39,20 @@ bot = Bot(
bot.log_calls = True
async def on_ready():
GuildLogs.check_logs(bot.client.guilds)
return True
async def on_guild_remove():
GuildLogs.check_logs(bot.client.guilds)
return True
bot.register_event(on_ready)
bot.register_event(on_guild_remove)
bot.register_command(
"(cancel|stop)",
GuildLogs.cancel,