From a9d9353d85db7a0c6596e0bda9f6a9914386503f Mon Sep 17 00:00:00 2001 From: Paillat Date: Tue, 29 Nov 2022 13:46:01 +0100 Subject: [PATCH] Update code.py --- code/code.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/code.py b/code/code.py index 2290564..a226b1d 100644 --- a/code/code.py +++ b/code/code.py @@ -189,7 +189,7 @@ async def on_message(message): #check if the message has been sent in the channel set in the database c.execute("SELECT channel_id FROM data WHERE guild_id = ?", (message.guild.id,)) if str(message.channel.id) != str(c.fetchone()[0]): - if message.content.find(bot.user.mention): + if message.content.find("<@1046051875755134996>") != -1: debug("wrong channel, but mention") else : debug("The message has been sent in the wrong channel")