diff options
Diffstat (limited to 'code')
-rw-r--r-- | code/plusbot.py | 6 |
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) |