From 90c4debcbc961b342353a6576501ffe096329068 Mon Sep 17 00:00:00 2001 From: stolenvw Date: Mon, 12 Apr 2021 16:54:58 -0400 Subject: Fixed where some commands where not reconnecting the MySQL database when connecting to database timedout do to being inactive --- code/plusbot.py | 1 + 1 file changed, 1 insertion(+) (limited to 'code/plusbot.py') diff --git a/code/plusbot.py b/code/plusbot.py index e94da6e..4cf06f2 100644 --- a/code/plusbot.py +++ b/code/plusbot.py @@ -133,6 +133,7 @@ async def on_ready(): bot.loop.create_task(serveronline()) botsql = bot.get_cog('BotSQL') await botsql.mydbconnect() + await bot.change_presence(activity=discord.Activity(type=discord.ActivityType.watching, name="Stolenvw ValPlusBot")) # Main loop for reading log file and outputing events async def mainloop(file): -- cgit v1.2.3-54-g00ecf