去掉插件

This commit is contained in:
liuwei
2025-04-15 14:24:30 +08:00
parent d452eb445b
commit 3d1f70b442
2 changed files with 10 additions and 8 deletions

View File

@@ -1,7 +1,7 @@
# 从当前包的main模块导入KidPhotoExtractorPlugin类 # # 从当前包的main模块导入KidPhotoExtractorPlugin类
from .main import KidPhotoExtractorPlugin # from .main import KidPhotoExtractorPlugin
# 提供get_plugin函数返回插件实例 # # 提供get_plugin函数返回插件实例
def get_plugin(): # def get_plugin():
"""获取插件实例""" # """获取插件实例"""
return KidPhotoExtractorPlugin() # return KidPhotoExtractorPlugin()

View File

@@ -414,8 +414,10 @@ class KidPhotoExtractorPlugin(MessagePluginInterface):
def start(self) -> bool: def start(self) -> bool:
"""启动插件""" """启动插件"""
self.LOG.info(f"[{self.name}] 插件已启动") if self.enable:
self.status = PluginStatus.RUNNING self.LOG.info(f"[{self.name}] 插件已启动")
self.status = PluginStatus.RUNNING
return False
return True return True
def stop(self) -> bool: def stop(self) -> bool: