summaryrefslogtreecommitdiff
path: root/code/plusbot.py
diff options
context:
space:
mode:
authorstolenvw <stolenvw@hotmail.com>2021-04-12 16:54:58 -0400
committerstolenvw <stolenvw@hotmail.com>2021-04-12 16:54:58 -0400
commit90c4debcbc961b342353a6576501ffe096329068 (patch)
tree7848f2fea2c08debf15c18e85b7d46e93a49af36 /code/plusbot.py
parent8ada699bc41441a91eebbecd60227a56e4ab0412 (diff)
Fixed where some commands where not reconnecting the MySQL database when connecting to database timedout do to being inactive
Diffstat (limited to 'code/plusbot.py')
-rw-r--r--code/plusbot.py1
1 files changed, 1 insertions, 0 deletions
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):