feat: Add complete bot source code for v0.0.2
Introduces new cog modules for bump, debug, setup, and other functionalities. Implements core abstractions for database, embeds, file handling, and async utilities. Updates configuration and requirements for enhanced bot capabilities.
This commit is contained in:
9
src/ver/0.0.2/core/checks.py
Normal file
9
src/ver/0.0.2/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