1
0
Fork 0
mirror of synced 2024-05-17 19:12:33 +12:00

Use the actual application info to figure out owner

This commit is contained in:
Phxntxm 2017-05-11 19:43:43 -05:00
parent 0549f8134d
commit 645bfef0b6
2 changed files with 4 additions and 1 deletions

3
bot.py
View file

@ -28,6 +28,9 @@ async def on_ready():
if not hasattr(bot, 'uptime'):
bot.uptime = pendulum.utcnow()
if not hasattr(bot, 'owner'):
appinfo = await bot.application_info()
bot.owner = appinfo.owner
await utils.db_check()

View file

@ -63,7 +63,7 @@ async def db_check():
def is_owner(ctx):
return ctx.message.author.id in config.owner_ids
return ctx.bot.owner.id == ctx.message.author.id
def should_ignore(message):