Update code.py

This commit is contained in:
Paillat
2022-11-28 08:13:41 +01:00
parent e4c2f20148
commit e4cf7195c2

View File

@@ -195,7 +195,7 @@ async def on_message(message):
prompt = "" prompt = ""
for msg in messages: for msg in messages:
if msg.author.bot: if msg.author.bot:
prompt += f"Donald Bot \"Botator\"": {msg.content}\n" prompt += f"Donald Bot \"Botator\": {msg.content}\n"
else: else:
prompt += f"{msg.author.display_name}: {msg.content}\n" prompt += f"{msg.author.display_name}: {msg.content}\n"
prompt = f"This is a conversation with an AI. Only the {prompt_size} last messages are used as a prompt.\n\n" + prompt + f"\n Donald Bot \"Botator\":" prompt = f"This is a conversation with an AI. Only the {prompt_size} last messages are used as a prompt.\n\n" + prompt + f"\n Donald Bot \"Botator\":"