修复enable配置

This commit is contained in:
Windpicker-owo
2025-08-28 21:13:54 +08:00
parent 8c660934d0
commit 8539bc2b08

View File

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