From ab27503de09fcda5a4e4db4120947431e2b6a039 Mon Sep 17 00:00:00 2001 From: Paillat Date: Mon, 28 Nov 2022 13:28:02 +0100 Subject: [PATCH] Update code.py --- code/code.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/code.py b/code/code.py index 2804704..96fcf5a 100644 --- a/code/code.py +++ b/code/code.py @@ -213,7 +213,7 @@ async def on_message(message): prompt += f"{msg.author.display_name}: {msg.content}\n" #get the prompt_prefix from the database c.execute("SELECT prompt_prefix FROM data WHERE guild_id = ?", (message.guild.id,)) - prompt = f"This is a conversation with an AI in a discord chat. The AI is called Donald Bot \"Botator\" Only the {prompt_size} last messages are used as a prompt.\n\n" + str(c.fetchone()[0]) + prompt + f"\n Donald Bot \"Botator\":" + prompt = f"This is a conversation with an AI in a discord chat. The AI is called Donald Bot \"Botator\" Only the {prompt_size} last messages are used as a prompt.\n\n" + str(c.fetchone()[0]) + f"\n" + prompt + f"\n Donald Bot \"Botator\":" #send the request to the api debug("Sending request to the api") debug(prompt)