Update chat.py

This commit is contained in:
Paillat
2022-12-19 20:36:22 +01:00
parent 836ad5169a
commit 5978bd400e

View File

@@ -199,7 +199,8 @@ async def on_message_process(message: discord.Message, self: Chat):
#prompt += "Botator:" #prompt += "Botator:"
#get the actual time in a variable #get the actual time in a variable
now = datetime.now() now = datetime.now()
print(now.strftime("%Y-%m-%d %H:%M:%S")) print(now)
print(str(now.strftime("%Y-%m-%d %H:%M:%S")))
#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')}):"
print(prompt) print(prompt)