feat(core): 在 no_reply 核心动作中增加了对聊天类型的判断,使其仅在群聊中生效
This commit is contained in:
@@ -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
|
||||
|
||||
# 动作基本信息
|
||||
|
||||
Reference in New Issue
Block a user