mirror of
https://github.com/Paillat-dev/Botator.git
synced 2026-01-02 09:16:19 +00:00
Update code.py
This commit is contained in:
@@ -189,7 +189,7 @@ async def on_message(message):
|
|||||||
#check if the message has been sent in the channel set in the database
|
#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,))
|
c.execute("SELECT channel_id FROM data WHERE guild_id = ?", (message.guild.id,))
|
||||||
if str(message.channel.id) != str(c.fetchone()[0]):
|
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")
|
debug("wrong channel, but mention")
|
||||||
else :
|
else :
|
||||||
debug("The message has been sent in the wrong channel")
|
debug("The message has been sent in the wrong channel")
|
||||||
|
|||||||
Reference in New Issue
Block a user