diff --git a/plugins/napcat_adapter_plugin/plugin.py b/plugins/napcat_adapter_plugin/plugin.py index c8337e7b9..9d1a0110a 100644 --- a/plugins/napcat_adapter_plugin/plugin.py +++ b/plugins/napcat_adapter_plugin/plugin.py @@ -121,6 +121,7 @@ class NapcatAdapterPlugin(BasePlugin): super().__init__(*args, **kwargs) def get_plugin_components(self): - return [ - (LauchNapcatAdapterHandler.get_handler_info(), LauchNapcatAdapterHandler) - ] \ No newline at end of file + components = [] + if self.get_config("plugin.enabled",""): + components.append((LauchNapcatAdapterHandler.get_handler_info(), LauchNapcatAdapterHandler)) + return components