加入聊天记录入库动作
This commit is contained in:
3
robot.py
3
robot.py
@@ -162,7 +162,8 @@ class Robot(Job):
|
|||||||
|
|
||||||
# 聊天记录入库动作:
|
# 聊天记录入库动作:
|
||||||
try:
|
try:
|
||||||
archive_message(datetime.now(),msg.sender,msg.content,msg.type,msg.extra)
|
now_time = str(datetime.now().strftime("%Y-%m-%d %H:%M:%S"))
|
||||||
|
archive_message(now_time,msg.sender,msg.content,msg.type,msg.extra)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
self.LOG.error(f"archive_message error: {e}")
|
self.LOG.error(f"archive_message error: {e}")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user