2016-07-09 13:27:19 +12:00
|
|
|
from discord.ext import commands
|
|
|
|
from . import config
|
|
|
|
|
|
|
|
|
2016-07-16 01:26:32 +12:00
|
|
|
def isOwner(ctx)
|
|
|
|
return ctx.message.author.id == config.ownerID
|
2016-07-09 13:27:19 +12:00
|
|
|
|
2016-07-16 01:26:32 +12:00
|
|
|
#def isOwner():
|
|
|
|
#def predicate(ctx):
|
|
|
|
#return ctx.message.author.id == config.ownerID
|
|
|
|
|
|
|
|
#return commands.check(predicate)
|
2016-07-09 13:27:19 +12:00
|
|
|
|
|
|
|
|
|
|
|
def isPM():
|
|
|
|
def predicate(ctx):
|
|
|
|
return ctx.message.channel.is_private
|
|
|
|
|
|
|
|
return commands.check(predicate)
|