1
0
Fork 0
mirror of synced 2024-05-07 06:02:24 +12:00

Added the second check for boop_db in the checkSetup in on_ready

This commit is contained in:
phxntxm 2016-07-07 17:23:40 -05:00
parent 2a9c64f7aa
commit 4139bd2cce

7
bot.py
View file

@ -84,7 +84,10 @@ async def on_ready():
'''success = checkSetup(cursor)
if success=="Error: default_db":
fmt = "The bot ran into an error while checking the database information."
fmt = "The bot ran into an error while checking for the default database information."
await bot.send_message(determineId(ownerID),fmt)
elif success="Error: boop_db":
fmt = "The bot ran into an error while checking for the boop database information."
await bot.send_message(determineId(ownerID),fmt)'''
cursor.execute('use {0}'.format(db_default))
@ -148,7 +151,7 @@ async def py(ctx):
result = eval(match_single[0])
await bot.say("```{0}```".format(result))
else:
def r(v):
def say(v):
loop.create_task(bot.say("```{0}```".format(v)))
exec(match_multi[0])