调整插件流程,server共享 robot项目的对象。
This commit is contained in:
@@ -275,7 +275,7 @@ class PluginManager:
|
||||
|
||||
# 添加模块名到显示名的映射
|
||||
self.module_to_display[module_name] = display_name
|
||||
self.LOG.info(f"PluginManager:添加模块映射 {module_name} -> {display_name}")
|
||||
# self.LOG.info(f"PluginManager:添加模块映射 {module_name} -> {display_name}")
|
||||
|
||||
# 发布插件加载事件
|
||||
EventSystem().publish(EventType.PLUGIN_LOADED, {"plugin": plugin})
|
||||
@@ -315,7 +315,7 @@ class PluginManager:
|
||||
|
||||
# 添加模块名到显示名的映射
|
||||
self.module_to_display[module_name] = display_name
|
||||
self.LOG.info(f"PluginManager:添加模块映射 {module_name} -> {display_name}")
|
||||
# self.LOG.info(f"PluginManager:添加模块映射 {module_name} -> {display_name}")
|
||||
|
||||
# 发布插件加载事件
|
||||
EventSystem().publish(EventType.PLUGIN_LOADED, {"plugin": plugin})
|
||||
|
||||
Reference in New Issue
Block a user