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