From f2073199440cf088b3f012d702cb8091ccad2931 Mon Sep 17 00:00:00 2001 From: nex Date: Mon, 20 Mar 2023 17:54:39 +0000 Subject: [PATCH] Fix message loop --- cogs/events.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cogs/events.py b/cogs/events.py index 8f249de..a31717c 100644 --- a/cogs/events.py +++ b/cogs/events.py @@ -198,11 +198,11 @@ class Events(commands.Cog): await message.reply("shut up", delete_after=3) await message.delete(delay=3) break - if message.channel.can_send() and "ferdi" in message.content.lower(): - await message.reply("https://ferdi-is.gay/") # Stop responding to any bots if message.author.bot is True: return + if message.channel.can_send() and "ferdi" in message.content.lower(): + await message.reply("https://ferdi-is.gay/") # Only respond if the message has content... if message.content: if message.channel.can_send(): # ... and we can send messages