1
0
Fork 0
mirror of synced 2024-06-27 02:31:04 +12:00
Bonfire/cogs/utils/checks.py
2016-07-15 08:28:23 -05:00

20 lines
384 B
Python

from discord.ext import commands
from . import config
def isOwner(ctx):
return ctx.message.author.id == config.ownerID
#def isOwner():
#def predicate(ctx):
#return ctx.message.author.id == config.ownerID
#return commands.check(predicate)
def isPM():
def predicate(ctx):
return ctx.message.channel.is_private
return commands.check(predicate)