Update chat.py

This commit is contained in:
Paillat
2022-12-13 22:35:55 +01:00
committed by GitHub
parent 0cab3ddea5
commit 4dbb23d075

View File

@@ -99,7 +99,7 @@ async def on_message_process(message, self):
#get the user #get the user
user = await self.bot.fetch_user(id) user = await self.bot.fetch_user(id)
#replace the mention with the name #replace the mention with the name
msg.content = msg.content.replace(mention, msg.guild.get_member(user.id).display_name) msg.content = msg.content.replace(mention, msg.guild.get_member(user.id).display_name+f"{mention}: mention")
prompt += f"{msg.author.display_name}: {msg.content}\n" prompt += f"{msg.author.display_name}: {msg.content}\n"
#get the prompt_prefix from the database #get the prompt_prefix from the database
#check if the bot is in pretend mode #check if the bot is in pretend mode