diff --git a/src/plugins/chat_module/heartFC_chat/heartFC_processor.py b/src/plugins/chat_module/heartFC_chat/heartFC_processor.py index 00a9a0240..a7c6251b8 100644 --- a/src/plugins/chat_module/heartFC_chat/heartFC_processor.py +++ b/src/plugins/chat_module/heartFC_chat/heartFC_processor.py @@ -177,7 +177,7 @@ class HeartFCProcessor: current_time = time.strftime("%H:%M:%S", time.localtime(message.message_info.time)) logger.info( f"[{current_time}][{mes_name}]" - f"{chat.user_info.user_nickname}:" + f"{message.message_info.user_info.user_nickname}:" f"{message.processed_plain_text}" f"兴趣度: {current_interest:.2f}" ) diff --git a/src/plugins/chat_module/heartFC_chat/reasoning_chat.py b/src/plugins/chat_module/heartFC_chat/reasoning_chat.py index addcd53d6..b36db2ff6 100644 --- a/src/plugins/chat_module/heartFC_chat/reasoning_chat.py +++ b/src/plugins/chat_module/heartFC_chat/reasoning_chat.py @@ -271,7 +271,7 @@ class ReasoningChat: willing_log = f"[回复意愿:{await willing_manager.get_willing(chat.stream_id):.2f}]" if is_willing else "" logger.info( f"[{current_time}][{mes_name}]" - f"{chat.user_info.user_nickname}:" + f"{message.message_info.user_info.user_nickname}:" f"{message.processed_plain_text}{willing_log}[概率:{reply_probability * 100:.1f}%]" ) do_reply = False diff --git a/src/plugins/chat_module/only_process/only_message_process.py b/src/plugins/chat_module/only_process/only_message_process.py index 5c239fb1f..bc85a1f5f 100644 --- a/src/plugins/chat_module/only_process/only_message_process.py +++ b/src/plugins/chat_module/only_process/only_message_process.py @@ -62,4 +62,4 @@ class MessageProcessor: mes_name = chat.group_info.group_name if chat.group_info else "私聊" # 将时间戳转换为datetime对象 current_time = datetime.fromtimestamp(message.message_info.time).strftime("%H:%M:%S") - logger.info(f"[{current_time}][{mes_name}]{chat.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}") diff --git a/src/plugins/chat_module/reasoning_chat/reasoning_chat.py b/src/plugins/chat_module/reasoning_chat/reasoning_chat.py index 5455aed60..3230f2ddc 100644 --- a/src/plugins/chat_module/reasoning_chat/reasoning_chat.py +++ b/src/plugins/chat_module/reasoning_chat/reasoning_chat.py @@ -236,7 +236,7 @@ class ReasoningChat: willing_log = f"[回复意愿:{await willing_manager.get_willing(chat.stream_id):.2f}]" if is_willing else "" logger.info( f"[{current_time}][{mes_name}]" - f"{chat.user_info.user_nickname}:" + f"{message.message_info.user_info.user_nickname}:" f"{message.processed_plain_text}{willing_log}[概率:{reply_probability * 100:.1f}%]" ) do_reply = False