modified: bot.py
This commit is contained in:
8
bot.py
8
bot.py
@@ -2874,9 +2874,9 @@ async def on_message(message):
|
||||
guild_id = message.guild.id
|
||||
member = message.author # Das Member-Objekt für Datenaktualisierung
|
||||
|
||||
# ── Honeypot check ──────────────────────────────────────────────────────────
|
||||
guild_settings = get_guild_settings(guild_id)
|
||||
if guild_settings.get("honeypot_enabled") and guild_settings.get("honeypot_channel_id"):
|
||||
# ── Honeypot check ──────────────────────────────────────────────────────────
|
||||
guild_settings = get_guild_settings(guild_id)
|
||||
if guild_settings.get("honeypot_enabled") and guild_settings.get("honeypot_channel_id"):
|
||||
if message.channel.id == int(guild_settings["honeypot_channel_id"]):
|
||||
# Build ignore-role set
|
||||
ignore_role_ids = set()
|
||||
@@ -3006,7 +3006,7 @@ if guild_settings.get("honeypot_enabled") and guild_settings.get("honeypot_chann
|
||||
logger.error(f"Honeypot: error sending log: {e}")
|
||||
|
||||
return # Never process further for honeypot channel messages
|
||||
# ── End honeypot check ──────────────────────────────────────────────────────
|
||||
# ── End honeypot check ──────────────────────────────────────────────────────
|
||||
cooldown_key = (user_id, guild_id)
|
||||
current_time = time.time()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user