Change decorator which checks for owner

Add is_me decorator to checks.py
This commit is contained in:
Dustin Pianalto
2019-12-14 01:36:20 -09:00
parent 76a4a753c4
commit 1e44728980
2 changed files with 11 additions and 5 deletions
+5 -2
View File
@@ -1,4 +1,7 @@
import discord
def is_rcon_admin(bot, ctx):
def is_me():
def predicate(ctx):
return ctx.message.author.id == ctx.bot.owner_id
return discord.ext.commands.check(predicate)