Update code.py

This commit is contained in:
Paillat
2022-11-29 14:35:59 +01:00
parent ba49c2840e
commit f8b837a10b

View File

@@ -259,9 +259,6 @@ async def on_message(message):
prompt = ""
#get the channel id from the database
c.execute("SELECT channel_id FROM data WHERE guild_id = ?", (message.guild.id,))
if str(message.channel.id) != str(c.fetchone()[0]):
prompt = message.author.display_name + ":" + message.content + "\n"
else:
for msg in messages:
if msg.author.bot:
prompt += f"Botator: {msg.content}\n"