Use the actual application info to figure out owner
This commit is contained in:
parent
0549f8134d
commit
645bfef0b6
3
bot.py
3
bot.py
|
@ -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()
|
||||
|
||||
|
||||
|
|
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue