Update code.py

This commit is contained in:
Paillat
2022-11-29 14:16:19 +01:00
parent dfc12defed
commit 5de4191cfc

View File

@@ -249,7 +249,7 @@ async def on_message(message):
#get the channel id from the database #get the channel id from 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]):
prompt = msg.author.display_name + ":" + message.content + "\n" prompt = message.author.display_name + ":" + message.content + "\n"
else: else:
for msg in messages: for msg in messages:
if msg.author.bot: if msg.author.bot: