修复enable配置
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user