Fix message loop

This commit is contained in:
Nexus 2023-03-20 17:54:39 +00:00
parent d361c4635c
commit f207319944
Signed by: nex
GPG key ID: 0FA334385D0B689F

View file

@ -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