feat(plugin): support auto bot injection and file-based hot reload

This commit is contained in:
liuwei
2026-04-16 13:54:56 +08:00
parent 041a3f30d8
commit f0414e0dff
4 changed files with 330 additions and 18 deletions

View File

@@ -98,6 +98,7 @@ class Robot:
self.plugin_manager = PluginManager(plugin_dir=getattr(self.config, "plugin_dir", "plugins"))
self.plugin_manager.set_system_context(self.system_context)
self.plugins = self.plugin_manager.load_all_plugins()
self.plugin_manager.start_hot_reload_watcher(interval_seconds=2.0)
# 加载插件
self.LOG.debug("插件系统初始化完成")