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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user