From 3f31c3ea4e45c262c0dfecf29649f4f6cbd9e8c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20Hells=C3=A9n?= Date: Sun, 21 Jul 2024 16:11:01 +0200 Subject: [PATCH] Don't trigger on all replies --- main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 6a87585..52b7302 100644 --- a/main.py +++ b/main.py @@ -124,8 +124,8 @@ async def on_message(message: discord.Message) -> None: if bot.user: things_to_notify_on.extend((f"<@!{bot.user.id}>", f"<@{bot.user.id}>")) - # Only respond to messages that mention the bot or are a reply to a bot message - if any(thing.lower() in message_content for thing in things_to_notify_on) or message.reference: + # Only respond to messages that mention the bot + if any(thing.lower() in message_content for thing in things_to_notify_on): if message.reference: # Get the message that the current message is replying to message_id: int | None = message.reference.message_id