Initial commit
This commit is contained in:
9
core/checks.py
Normal file
9
core/checks.py
Normal file
@@ -0,0 +1,9 @@
|
||||
from .files import Data
|
||||
from discord.ext import commands
|
||||
|
||||
config = Data("config").yaml_read()
|
||||
|
||||
def manager():
|
||||
def predicate(ctx):
|
||||
return ctx.author.id in config["managers"]
|
||||
return commands.check(predicate)
|
||||
Reference in New Issue
Block a user