Update chat.py

This commit is contained in:
Paillat
2022-12-19 20:25:16 +01:00
parent 9e18cc03f2
commit cbc98a78aa

View File

@@ -150,8 +150,7 @@ async def on_message_process(message: discord.Message, self: Chat):
msg.content = msg.content.replace(mention, user + f"<@{id}>")
#get the gmt time the message was sent
gmt_time = message.created_at.strftime("%Y-%m-%d %H:%M:%S")
print(f"{gmt_time}")
print({msg.content})
print(msg.content)
prompt += f"{msg.author} ({gmt_time} GMT-0): {msg.content}\n"
print(prompt)
#get the prompt_prefix from the database