Added graceful shutdown for bot connection (await bot.close())
This commit is contained in:
@@ -67,4 +67,5 @@ except discord.errors.LoginFailure:
|
||||
quit(1)
|
||||
|
||||
app_logger.info("Quitting application ...")
|
||||
asyncio.run(bot.close())
|
||||
app_logger.info(f"Exiting. Application ran for {get_elapsed_time_big(datetime.now().timestamp() - startup)}")
|
||||
Reference in New Issue
Block a user