Merge branch 'issue#814' of https://github.com/Dax233/MaiMBot into issue#814
This commit is contained in:
@@ -62,4 +62,6 @@ class MessageProcessor:
|
|||||||
mes_name = chat.group_info.group_name if chat.group_info else "私聊"
|
mes_name = chat.group_info.group_name if chat.group_info else "私聊"
|
||||||
# 将时间戳转换为datetime对象
|
# 将时间戳转换为datetime对象
|
||||||
current_time = datetime.fromtimestamp(message.message_info.time).strftime("%H:%M:%S")
|
current_time = datetime.fromtimestamp(message.message_info.time).strftime("%H:%M:%S")
|
||||||
logger.info(f"[{current_time}][{mes_name}]{message.message_info.user_info.user_nickname}: {message.processed_plain_text}")
|
logger.info(
|
||||||
|
f"[{current_time}][{mes_name}]{message.message_info.user_info.user_nickname}: {message.processed_plain_text}"
|
||||||
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user