This commit is contained in:
Windpicker-owo
2025-08-31 00:20:17 +08:00
parent c7823245d2
commit d1d59591d8
2 changed files with 4 additions and 6 deletions

8
bot.py
View File

@@ -23,11 +23,9 @@ else:
# 最早期初始化日志系统,确保所有后续模块都使用正确的日志格式 # 最早期初始化日志系统,确保所有后续模块都使用正确的日志格式
from src.common.logger import initialize_logging, get_logger, shutdown_logging from src.common.logger import initialize_logging, get_logger, shutdown_logging
# UI日志适配器 - 最小侵入式集成 # UI日志适配器
try: import ui_log_adapter
import ui_log_adapter # 自动设置UI日志传输
except ImportError:
pass
initialize_logging() initialize_logging()

View File

@@ -206,7 +206,7 @@ class APITestHandler(BaseEventHandler):
@register_plugin @register_plugin
class NapcatAdapterPlugin(BasePlugin): class NapcatAdapterPlugin(BasePlugin):
plugin_name = CONSTS.PLUGIN_NAME plugin_name = CONSTS.PLUGIN_NAME
enable_plugin: bool = False enable_plugin: bool = True
dependencies: List[str] = [] # 插件依赖列表 dependencies: List[str] = [] # 插件依赖列表
python_dependencies: List[str] = [] # Python包依赖列表 python_dependencies: List[str] = [] # Python包依赖列表
config_file_name: str = "config.toml" # 配置文件名 config_file_name: str = "config.toml" # 配置文件名