From fa81c1da47b482d97ffbc8827597fe4a1a6db91c Mon Sep 17 00:00:00 2001 From: Paillat Date: Sun, 12 Feb 2023 19:37:29 +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 a2a6868..f61cccf 100644 --- a/code/makeprompt.py +++ b/code/makeprompt.py @@ -91,7 +91,7 @@ async def process(self, message): content = content.replace(mention, f"{user.name}#{user.discriminator}:<@{uid}>") content = content + "\nSYSTEM: Mentions have been replaced with name#discriminator:id. Botator uses only the mention, not the name or the discriminator. The discriminator is only used to prevent name clashes." if content.endswith("\n*Images from unsplash.com*"): - content = content.replace("\n*Images from unsplash.com*", "[image:here was an image]") + content = content.replace("\n*Images from unsplash.com*", "") gmt_time = message.created_at.strftime("%Y-%m-%d %H:%M:%S") u_prompt += f"{msg.author} ({gmt_time} GMT-0): {content}\n" print(pretend_enabled)