fix bot ban check
@@ -102,7 +102,11 @@ for cog in bot.cog_list: # load every cog in bot.cog_list
async def is_bot_banned(uid): # checks if a user has been botbanned
- return (await bot.db.fetchrow('SELECT bot_banned FROM users WHERE uid = $1', uid))[0]
+ user = await bot.db.fetchrow('SELECT bot_banned FROM users WHERE uid = $1', uid)
+ if user is not None:
+ return user['bot_banned']
+ else:
+ return False
@bot.check # everythingggg goes through here
