update
This commit is contained in:
1 parent
947e0161a3
commit
b71e17086d
9 files changed
+553
-2
No files matched your search
@@ -0,0 +1,21 @@
|
||||
import json
|
||||
from typing import List
|
||||
|
||||
import discord
|
||||
from discord.ext import commands
|
||||
|
||||
OWNER = json.load(open("exts/cfg.json"))["ReplOwners"]
|
||||
|
||||
|
||||
def is_owner() -> bool:
|
||||
def predicate(ctx: commands.Context):
|
||||
return ctx.author.id in OWNER
|
||||
|
||||
return commands.check(predicate)
|
||||
|
||||
|
||||
def guild_specific(guilds: List[discord.Object]) -> bool:
|
||||
def predicate(ctx: commands.Context):
|
||||
return ctx.guild.id in guilds
|
||||
|
||||
return commands.check(predicate)
|
||||
Reference in new issue
Block a user