修复enable配置

This commit is contained in:
Windpicker-owo
2025-08-28 21:13:54 +08:00
parent 6f337a9d3f
commit 51075c7dd9

View File

@@ -121,6 +121,7 @@ class NapcatAdapterPlugin(BasePlugin):
super().__init__(*args, **kwargs) super().__init__(*args, **kwargs)
def get_plugin_components(self): def get_plugin_components(self):
return [ components = []
(LauchNapcatAdapterHandler.get_handler_info(), LauchNapcatAdapterHandler) if self.get_config("plugin.enabled",""):
] components.append((LauchNapcatAdapterHandler.get_handler_info(), LauchNapcatAdapterHandler))
return components