Rework complet du système de ticket § focntinnnement partiel

This commit is contained in:
Mathis 2026-01-10 15:30:51 +01:00
parent 93e2f9bb44
commit dfec6b2418
75 changed files with 6424 additions and 1893 deletions

4
bot.py
View file

@ -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")