fix: add black list here

This commit is contained in:
2025-11-23 15:13:08 +01:00
parent a9c6417448
commit a5b9c308ff

View File

@@ -6,7 +6,7 @@ import discord
from bot.ai.handle_request import forward_to_google_api
from bot.log import logger
from bot.utils import aware_utcnow, timeout_member, safe_truncate
from database import add_user_to_role
from database import add_user_to_role, is_user_blacklisted
BOT_LOG = 1112049391482703873
GENERAL_CHANNEL = 1110531063744303138
@@ -65,6 +65,12 @@ async def handle_bot_mention(message, bot, no_context=False):
)
return True
if is_user_blacklisted(message.author.id):
message.reply(
"You are blacklisted from using this command.", mention_author=True
)
return True
# Cooldown logic: max 1 use per minute per user
now = time.time()
user_id = message.author.id