Update chat.py

This commit is contained in:
Paillat
2022-12-19 20:20:27 +01:00
parent 00ccfecdd7
commit 9be7ac4f1a

View File

@@ -151,6 +151,7 @@ async def on_message_process(message: discord.Message, self: Chat):
#get the gmt time the message was sent #get the gmt time the message was sent
gmt_time = message.created_at.strftime("%Y-%m-%d %H:%M:%S") gmt_time = message.created_at.strftime("%Y-%m-%d %H:%M:%S")
print(f"{gmt_time}") print(f"{gmt_time}")
print({msg.content})
prompt += f"{msg.author} ({gmt_time} GMT-0): {msg.content}\n" prompt += f"{msg.author} ({gmt_time} GMT-0): {msg.content}\n"
#get the prompt_prefix from the database #get the prompt_prefix from the database
#check if the bot is in pretend mode #check if the bot is in pretend mode