1
0
Fork 0
mirror of synced 2024-05-19 20:12:30 +12:00

Ensure the bot.owner attribute has been set

This commit is contained in:
Phxntxm 2017-05-14 20:04:52 -05:00
parent e9354febc4
commit 84c096df4b

View file

@ -63,6 +63,8 @@ async def db_check():
def is_owner(ctx):
if not hasattr(ctx.bot, "owner"):
return False
return ctx.bot.owner.id == ctx.message.author.id