From 3ad36912e3ee5df08fa60a26be9e26bb852edcfc Mon Sep 17 00:00:00 2001 From: minecraft1024a Date: Sat, 13 Sep 2025 21:43:08 +0800 Subject: [PATCH] =?UTF-8?q?feat(chat):=20=E5=A2=9E=E5=8A=A0=E8=B0=83?= =?UTF-8?q?=E8=AF=95=E6=97=A5=E5=BF=97=E8=BE=93=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 为了方便调试,在执行文本回复动作时,增加了一条详细的调试日志。这条日志会输出完整的 `action_message` 内容,并带有一个特殊的提示,方便在出现问题时快速定位和反馈。 --- src/chat/chat_loop/cycle_processor.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/chat/chat_loop/cycle_processor.py b/src/chat/chat_loop/cycle_processor.py index c26b60876..0af7b1b85 100644 --- a/src/chat/chat_loop/cycle_processor.py +++ b/src/chat/chat_loop/cycle_processor.py @@ -299,7 +299,8 @@ class CycleProcessor: logger.info(f"{self.log_prefix} 正在执行文本回复...") for action in reply_actions: target_user_id = action.get("action_message",{}).get("chat_info_user_id","") - logger.info(action.get("action_message",{})) + action_message_test =action.get("action_message",{}) + logger.info(f"如果你探到这条日志请把它复制下来发到Q群里,如果你探到这条日志请把它复制下来发到Q群里,如果你探到这条日志请把它复制下来发到Q群里,调试内容:{action_message_test}") if target_user_id == global_config.bot.qq_account and not global_config.chat.allow_reply_self: logger.warning("选取的reply的目标为bot自己,跳过reply action") continue