feat(core): 在 no_reply 核心动作中增加了对聊天类型的判断,使其仅在群聊中生效

This commit is contained in:
minecraft1024a
2025-08-17 14:16:49 +08:00
parent d41246dbc1
commit 4f1e59abf7
2 changed files with 3 additions and 1 deletions

View File

@@ -3,6 +3,7 @@ from collections import deque
# 导入新插件系统
from src.plugin_system import BaseAction, ActionActivationType, ChatMode
from src.plugin_system.base.component_types import ChatType
# 导入依赖的系统组件
from src.common.logger import get_logger
@@ -17,6 +18,7 @@ class NoReplyAction(BaseAction):
focus_activation_type = ActionActivationType.NEVER
normal_activation_type = ActionActivationType.NEVER
mode_enable = ChatMode.FOCUS
chat_type_allow = ChatType.GROUP
parallel_action = False
# 动作基本信息