ruff
This commit is contained in:
8
bot.py
8
bot.py
@@ -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()
|
||||||
|
|
||||||
|
|||||||
@@ -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" # 配置文件名
|
||||||
|
|||||||
Reference in New Issue
Block a user