From 03a66489731bce62081c1483efdedcac0b835435 Mon Sep 17 00:00:00 2001 From: pancakes-proxy Date: Sun, 4 May 2025 22:23:55 +0900 Subject: [PATCH] Update message listener to allow bot responses while ignoring other bot messages --- cogs/ai.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cogs/ai.py b/cogs/ai.py index 4843bcc..442fe8d 100644 --- a/cogs/ai.py +++ b/cogs/ai.py @@ -916,7 +916,7 @@ class AICog(commands.Cog): # --- Listener --- @commands.Cog.listener() async def on_message(self, message: discord.Message): - if message.author == self.bot.user or message.author.bot: return + if message.author == self.bot.user: return # Allow bot responses ctx = await self.bot.get_context(message); if ctx.valid: return # Let command processing handle valid commands