From 7db572ef70352bbd244fd93eb03aaab788a9e35a Mon Sep 17 00:00:00 2001 From: Paillat Date: Wed, 1 Mar 2023 08:37:59 +0100 Subject: [PATCH] Update makeprompt.py --- code/makeprompt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/makeprompt.py b/code/makeprompt.py index 95b5047..a322bc3 100644 --- a/code/makeprompt.py +++ b/code/makeprompt.py @@ -89,7 +89,7 @@ async def process(self, message): user = await self.bot.fetch_user(uid) #replace the mention with the name content = content.replace(mention, f"{user.name}") - u_prompt += f"{msg.author}: {content}\n" + u_prompt += f"{msg.author.name}: {content}" if pretend_enabled : pretend_to_be = f"In this conversation, Botator pretends to be {pretend_to_be} and not Botator. " else: pretend_to_be = "" prompt = f'''Server name: {message.guild.name}. Channel name: {message.channel.name}.