This commit is contained in:
SengokuCola
2025-07-25 16:14:47 +08:00
4 changed files with 23 additions and 19 deletions

View File

@@ -1,16 +1,21 @@
name: Docker Build and Push name: Docker Build and Push
on: on:
push: # push:
# branches:
# - main
# - classical
# - dev
# tags:
# - "v*.*.*"
# - "v*"
# - "*.*.*"
# - "*.*.*-*"
workflow_dispatch: # 允许手动触发工作流
branches: branches:
- main - main
- classical
- dev - dev
tags: - dev-refactor
- "v*.*.*"
- "v*"
- "*.*.*"
- "*.*.*-*"
# Workflow's jobs # Workflow's jobs
jobs: jobs:

View File

@@ -1,12 +1,12 @@
name: Ruff name: Ruff
on: on:
push: # push:
branches: # branches:
- main # - main
- dev # - dev
- dev-refactor # 例如:匹配所有以 feature/ 开头的分支 # - dev-refactor # 例如:匹配所有以 feature/ 开头的分支
# 添加你希望触发此 workflow 的其他分支 # # 添加你希望触发此 workflow 的其他分支
workflow_dispatch: # 允许手动触发工作流 workflow_dispatch: # 允许手动触发工作流
branches: branches:
- main - main

View File

@@ -66,13 +66,12 @@ class CoreActionsPlugin(BasePlugin):
if global_config.emoji.emoji_activate_type == "llm": if global_config.emoji.emoji_activate_type == "llm":
EmojiAction.random_activation_probability = 0.0 EmojiAction.random_activation_probability = 0.0
EmojiAction.focus_activation_type = ActionActivationType.LLM_JUDGE EmojiAction.activation_type = ActionActivationType.LLM_JUDGE
EmojiAction.normal_activation_type = ActionActivationType.LLM_JUDGE
elif global_config.emoji.emoji_activate_type == "random": elif global_config.emoji.emoji_activate_type == "random":
EmojiAction.random_activation_probability = global_config.emoji.emoji_chance EmojiAction.random_activation_probability = global_config.emoji.emoji_chance
EmojiAction.focus_activation_type = ActionActivationType.RANDOM EmojiAction.activation_type = ActionActivationType.RANDOM
EmojiAction.normal_activation_type = ActionActivationType.RANDOM
# --- 根据配置注册组件 --- # --- 根据配置注册组件 ---
components = [] components = []
if self.get_config("components.enable_reply", True): if self.get_config("components.enable_reply", True):

View File

@@ -422,13 +422,13 @@ class ManagementCommand(BaseCommand):
@register_plugin @register_plugin
class PluginManagementPlugin(BasePlugin): class PluginManagementPlugin(BasePlugin):
plugin_name: str = "plugin_management_plugin" plugin_name: str = "plugin_management_plugin"
enable_plugin: bool = True enable_plugin: bool = False
dependencies: list[str] = [] dependencies: list[str] = []
python_dependencies: list[str] = [] python_dependencies: list[str] = []
config_file_name: str = "config.toml" config_file_name: str = "config.toml"
config_schema: dict = { config_schema: dict = {
"plugin": { "plugin": {
"enable": ConfigField(bool, default=True, description="是否启用插件"), "enable": ConfigField(bool, default=False, description="是否启用插件"),
"permission": ConfigField(list, default=[], description="有权限使用插件管理命令的用户列表"), "permission": ConfigField(list, default=[], description="有权限使用插件管理命令的用户列表"),
}, },
} }