mirror of
https://github.com/Paillat-dev/Botator.git
synced 2026-01-02 17:24:55 +00:00
Changed the AI's name
This commit is contained in:
@@ -195,10 +195,10 @@ 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"AI: {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 AI:"
|
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\":"
|
||||||
#send the request to the api
|
#send the request to the api
|
||||||
debug("Sending request to the api")
|
debug("Sending request to the api")
|
||||||
debug(prompt)
|
debug(prompt)
|
||||||
|
|||||||
Reference in New Issue
Block a user