From 0b9c2ef562a4f76556580df2004598c8cb5500b1 Mon Sep 17 00:00:00 2001 From: stolenvw Date: Sun, 4 Apr 2021 10:23:49 -0400 Subject: Fixed error in debug output for when server is off-line --- code/plusbot.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'code') diff --git a/code/plusbot.py b/code/plusbot.py index cf026b7..e03659e 100644 --- a/code/plusbot.py +++ b/code/plusbot.py @@ -59,9 +59,9 @@ async def mydbconnect(): buginfo.set_author(name=server_name) await bugchan.send(embed=buginfo) except mysql.connector.Error as err: - print(Fore.RED + err + Style.RESET_ALL) + print(Fore.RED + err + 'From MySQL database' + Style.RESET_ALL) if config.USEDEBUGCHAN == True: - bugerror = discord.Embed(title=":sos: **ERROR** :sos:", description=err, color=0xFF001E) + bugerror = discord.Embed(title=":sos: **ERROR** :sos:", description="{} From MySQL database".format(err), color=0xFF001E) bugerror.set_author(name=server_name) await bugchan.send(embed=bugerror) @@ -599,7 +599,7 @@ async def serveronline(): print(Fore.RED + await timenow(), e, 'from A2S, retrying (60s)...' + Style.RESET_ALL) if config.USEDEBUGCHAN == True: bugchan = bot.get_channel(dbchanID) - bugerror = discord.Embed(title=":sos: **ERROR** :sos:", description=e, color=0xFF001E) + bugerror = discord.Embed(title=":sos: **ERROR** :sos:", description="{} from A2S, retrying (60s)...".format(e), color=0xFF001E) bugerror.set_author(name=server_name) await bugchan.send(embed=bugerror) await asyncio.sleep(60) -- cgit v1.2.3-70-g09d2