mirror of
https://github.com/Paillat-dev/Botator.git
synced 2026-01-02 09:16:19 +00:00
Update chat.py
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user