feat(chat): 增加回复动作的消息日志输出

在执行回复动作前,增加对 `action_message` 的日志输出,方便调试和追踪回复流程中的具体消息内容。
This commit is contained in:
minecraft1024a
2025-09-13 21:37:47 +08:00
committed by Windpicker-owo
parent fd8bbd33cb
commit cc7920c002

View File

@@ -299,6 +299,7 @@ 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",{}))
if target_user_id == global_config.bot.qq_account and not global_config.chat.allow_reply_self:
logger.warning("选取的reply的目标为bot自己跳过reply action")
continue