From 4139bd2cce516f5f3b8a00c1b3adce303d84b2cf Mon Sep 17 00:00:00 2001 From: phxntxm Date: Thu, 7 Jul 2016 17:23:40 -0500 Subject: [PATCH] Added the second check for boop_db in the checkSetup in on_ready --- bot.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/bot.py b/bot.py index 79eedfb..61b60e1 100644 --- a/bot.py +++ b/bot.py @@ -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])