added ability to ping

This commit is contained in:
Paillat
2022-12-13 22:40:52 +01:00
committed by GitHub
parent 4dbb23d075
commit 3560c7802a

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