From 1101d287ad1e12d5542a89d44cda8aaaa5c0c082 Mon Sep 17 00:00:00 2001 From: Phxntxm Date: Fri, 15 Jul 2016 08:26:32 -0500 Subject: [PATCH] Removed custom predicates, will makes custom permissions setup in the future easier --- cogs/utils/checks.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/cogs/utils/checks.py b/cogs/utils/checks.py index 1286044..1c48634 100644 --- a/cogs/utils/checks.py +++ b/cogs/utils/checks.py @@ -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():