modified: bot.py

This commit is contained in:
SimolZimol
2026-06-15 21:21:36 +02:00
parent d0a3954f0a
commit 7a81efefcd

8
bot.py
View File

@@ -2874,9 +2874,9 @@ async def on_message(message):
guild_id = message.guild.id guild_id = message.guild.id
member = message.author # Das Member-Objekt für Datenaktualisierung member = message.author # Das Member-Objekt für Datenaktualisierung
# ── Honeypot check ────────────────────────────────────────────────────────── # ── Honeypot check ──────────────────────────────────────────────────────────
guild_settings = get_guild_settings(guild_id) guild_settings = get_guild_settings(guild_id)
if guild_settings.get("honeypot_enabled") and guild_settings.get("honeypot_channel_id"): if guild_settings.get("honeypot_enabled") and guild_settings.get("honeypot_channel_id"):
if message.channel.id == int(guild_settings["honeypot_channel_id"]): if message.channel.id == int(guild_settings["honeypot_channel_id"]):
# Build ignore-role set # Build ignore-role set
ignore_role_ids = 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}") logger.error(f"Honeypot: error sending log: {e}")
return # Never process further for honeypot channel messages return # Never process further for honeypot channel messages
# ── End honeypot check ────────────────────────────────────────────────────── # ── End honeypot check ──────────────────────────────────────────────────────
cooldown_key = (user_id, guild_id) cooldown_key = (user_id, guild_id)
current_time = time.time() current_time = time.time()