Update chat.py

This commit is contained in:
Paillat
2022-12-13 22:45:20 +01:00
committed by GitHub
parent 3560c7802a
commit 5fbafe5abb

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 + f"[user id (for mentions): {id}]") msg.content = msg.content.replace(mention, msg.guild.get_member(user.id).display_name + f"<@{id}>")
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