支持开发热重载插件,支持独立测试函数

This commit is contained in:
2024-12-17 20:51:42 +08:00
parent 87b18c424b
commit 99c113833e
9 changed files with 211 additions and 14 deletions

View File

@ -112,7 +112,7 @@ async def _preload_tools():
@driver.on_startup
async def _preload_plugins():
async def _():
"""启动钩子加载插件"""
if config.marshoai_enable_plugins:
marshoai_plugin_dirs = config.marshoai_plugin_dirs # 外部插件目录列表