feat(plugin): support auto bot injection and file-based hot reload
This commit is contained in:
1
robot.py
1
robot.py
@@ -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("插件系统初始化完成")
|
||||
|
||||
Reference in New Issue
Block a user