19 lines
384 B
Python
19 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)
|