Update chat.py

This commit is contained in:
Paillat
2022-12-19 20:03:34 +01:00
parent 8634b14aea
commit ecdc69a254

View File

@@ -199,7 +199,7 @@ async def on_message_process(message: discord.Message, self: Chat):
now = datetime.now() now = datetime.now()
#add the time to the prompt in the strftime("%Y-%m-%d %H:%M:%S") format #add the time to the prompt in the strftime("%Y-%m-%d %H:%M:%S") format
prompt = prompt + f"{self.bot.user.name} ({now.strftime('%Y-%m-%d %H:%M:%S')}):" prompt = prompt + f"{self.bot.user.name} ({now.strftime('%Y-%m-%d %H:%M:%S')}):"
prompt = prompt + f"\n" print(prompt)
print("Sending request to the api") print("Sending request to the api")
#print(prompt) #print(prompt)
openai.api_key = api_key openai.api_key = api_key