From b052cf8ff366209c9c5476b737ea5ef045da5ecb Mon Sep 17 00:00:00 2001 From: Paillat Date: Mon, 6 Mar 2023 15:28:51 +0100 Subject: [PATCH] fixed wrong mention --- code/makeprompt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/makeprompt.py b/code/makeprompt.py index 354fc54..ff103e3 100644 --- a/code/makeprompt.py +++ b/code/makeprompt.py @@ -93,7 +93,7 @@ async def chat_process(self, message): content = msg.content if await moderate(api_key=api_key, text=content): embed = discord.Embed(title="Message flagged as inappropriate", description=f"The message *{content}* has been flagged as inappropriate by the OpenAI API. This means that if it hadn't been deleted, your openai account would have been banned. Please contact OpenAI support if you think this is a mistake.", color=discord.Color.brand_red()) - await message.channel.send(f"{message.author.mention}", embed=embed, delete_after=10) + await message.channel.send(f"{msg.author.mention}", embed=embed, delete_after=10) message.delete() else: content = await replace_mentions(content, self.bot)