summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorstolenvw <stolenvw@hotmail.com>2021-04-04 10:23:49 -0400
committerstolenvw <stolenvw@hotmail.com>2021-04-04 10:23:49 -0400
commit0b9c2ef562a4f76556580df2004598c8cb5500b1 (patch)
tree1d481bea07a553fbec7c0a3ca1d16c8829600ed9
parent14e29dd15037c9368081bfb0a9ac5c689c289eb4 (diff)
Fixed error in debug output for when server is off-line
-rw-r--r--code/plusbot.py6
1 files changed, 3 insertions, 3 deletions
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)