feat(chat): 增加回复动作的消息日志输出
在执行回复动作前,增加对 `action_message` 的日志输出,方便调试和追踪回复流程中的具体消息内容。
This commit is contained in:
committed by
Windpicker-owo
parent
fd8bbd33cb
commit
cc7920c002
@@ -299,6 +299,7 @@ class CycleProcessor:
|
|||||||
logger.info(f"{self.log_prefix} 正在执行文本回复...")
|
logger.info(f"{self.log_prefix} 正在执行文本回复...")
|
||||||
for action in reply_actions:
|
for action in reply_actions:
|
||||||
target_user_id = action.get("action_message",{}).get("chat_info_user_id","")
|
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:
|
if target_user_id == global_config.bot.qq_account and not global_config.chat.allow_reply_self:
|
||||||
logger.warning("选取的reply的目标为bot自己,跳过reply action")
|
logger.warning("选取的reply的目标为bot自己,跳过reply action")
|
||||||
continue
|
continue
|
||||||
|
|||||||
Reference in New Issue
Block a user