Rework complet du système de ticket § focntinnnement partiel
This commit is contained in:
parent
93e2f9bb44
commit
dfec6b2418
75 changed files with 6424 additions and 1893 deletions
4
bot.py
4
bot.py
|
|
@ -31,7 +31,7 @@ class MyBot(commands.Bot):
|
|||
def __init__(self):
|
||||
kuby_logger.debug("Initializing MyBot class")
|
||||
super().__init__(
|
||||
command_prefix="!",
|
||||
command_prefix="!",
|
||||
intents=intents,
|
||||
application_id=application_id,
|
||||
)
|
||||
|
|
@ -84,7 +84,7 @@ class MyBot(commands.Bot):
|
|||
kuby_logger.warning("WhitelistMonitor cog not found, allowing all commands")
|
||||
return True
|
||||
|
||||
is_whitelisted = whitelist_cog.is_whitelisted(ctx.author.id)
|
||||
is_whitelisted = whitelist_cog.is_whitelisted(ctx.guild.id, ctx.author.id)
|
||||
|
||||
if not is_whitelisted:
|
||||
kuby_logger.info(f"User {ctx.author} (ID: {ctx.author.id}) attempted to use command but is not whitelisted")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue