[Core] Implemented co-owners support (#953)

This commit is contained in:
Twentysix
2017-10-01 22:53:27 +02:00
committed by GitHub
parent 9ed671a141
commit 39a0f25774
2 changed files with 10 additions and 1 deletions

View File

@@ -10,7 +10,8 @@ from __main__ import settings
#
def is_owner_check(ctx):
return ctx.message.author.id == settings.owner
_id = ctx.message.author.id
return _id == settings.owner or _id in ctx.bot.settings.co_owners
def is_owner():
return commands.check(is_owner_check)