mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-09-17 23:37:15 +00:00
feat: 插件加载阶段前置 (#681)
This commit is contained in:
@@ -80,7 +80,6 @@ class Application:
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
async def run(self):
|
async def run(self):
|
||||||
await self.plugin_mgr.load_plugins()
|
|
||||||
await self.plugin_mgr.initialize_plugins()
|
await self.plugin_mgr.initialize_plugins()
|
||||||
|
|
||||||
tasks = []
|
tasks = []
|
||||||
|
|||||||
@@ -62,6 +62,7 @@ class BuildAppStage(stage.BootingStage):
|
|||||||
plugin_mgr_inst = plugin_mgr.PluginManager(ap)
|
plugin_mgr_inst = plugin_mgr.PluginManager(ap)
|
||||||
await plugin_mgr_inst.initialize()
|
await plugin_mgr_inst.initialize()
|
||||||
ap.plugin_mgr = plugin_mgr_inst
|
ap.plugin_mgr = plugin_mgr_inst
|
||||||
|
await plugin_mgr_inst.load_plugins()
|
||||||
|
|
||||||
cmd_mgr_inst = cmdmgr.CommandManager(ap)
|
cmd_mgr_inst = cmdmgr.CommandManager(ap)
|
||||||
await cmd_mgr_inst.initialize()
|
await cmd_mgr_inst.initialize()
|
||||||
|
|||||||
Reference in New Issue
Block a user