10 lines
212 B
Python
10 lines
212 B
Python
from discord.ext import commands
|
|
from administrator import config
|
|
|
|
|
|
class NotOwner(commands.CheckFailure):
|
|
pass
|
|
|
|
|
|
async def is_owner(ctx: commands.Context):
|
|
return ctx.author.id == config.get("admin_id")
|