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

Removed custom predicates, will makes custom permissions setup in the future easier

This commit is contained in:
Phxntxm 2016-07-15 08:26:32 -05:00
parent ff4a7e9c46
commit 1101d287ad

View file

@ -2,11 +2,14 @@ from discord.ext import commands
from . import config
def isOwner():
def predicate(ctx):
return ctx.message.author.id == config.ownerID
def isOwner(ctx)
return ctx.message.author.id == config.ownerID
return commands.check(predicate)
#def isOwner():
#def predicate(ctx):
#return ctx.message.author.id == config.ownerID
#return commands.check(predicate)
def isPM():