feat:允许command设置展示名称,而非指令原文,添加处理器超时,NormalChat转换清理

This commit is contained in:
SengokuCola
2025-05-28 13:49:19 +08:00
parent 7fcd5c9abe
commit 41f97a0bf1
12 changed files with 75 additions and 23 deletions

View File

@@ -137,9 +137,9 @@ class ActionProcessor(BaseProcessor):
# 检查no_reply比例
print(f"no_reply_count: {no_reply_count}, len(recent_cycles): {len(recent_cycles)}")
# print(1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111)
if len(recent_cycles) >= (4 * global_config.focus_chat.exit_focus_threshold) and (
if len(recent_cycles) >= (5 * global_config.focus_chat.exit_focus_threshold) and (
no_reply_count / len(recent_cycles)
) >= (0.6 * global_config.focus_chat.exit_focus_threshold):
) >= (0.8 * global_config.focus_chat.exit_focus_threshold):
if global_config.chat.chat_mode == "auto":
result["add"].append("exit_focus_chat")
result["remove"].append("no_reply")