diff --git a/plugins/kid_photo_extractor/__init__.py b/plugins/kid_photo_extractor/__init__.py index 0d2af41..7e76961 100644 --- a/plugins/kid_photo_extractor/__init__.py +++ b/plugins/kid_photo_extractor/__init__.py @@ -1,7 +1,7 @@ -# 从当前包的main模块导入KidPhotoExtractorPlugin类 -from .main import KidPhotoExtractorPlugin +# # 从当前包的main模块导入KidPhotoExtractorPlugin类 +# from .main import KidPhotoExtractorPlugin -# 提供get_plugin函数,返回插件实例 -def get_plugin(): - """获取插件实例""" - return KidPhotoExtractorPlugin() \ No newline at end of file +# # 提供get_plugin函数,返回插件实例 +# def get_plugin(): +# """获取插件实例""" +# return KidPhotoExtractorPlugin() \ No newline at end of file diff --git a/plugins/kid_photo_extractor/main.py b/plugins/kid_photo_extractor/main.py index da53210..8c9d976 100644 --- a/plugins/kid_photo_extractor/main.py +++ b/plugins/kid_photo_extractor/main.py @@ -414,8 +414,10 @@ class KidPhotoExtractorPlugin(MessagePluginInterface): def start(self) -> bool: """启动插件""" - self.LOG.info(f"[{self.name}] 插件已启动") - self.status = PluginStatus.RUNNING + if self.enable: + self.LOG.info(f"[{self.name}] 插件已启动") + self.status = PluginStatus.RUNNING + return False return True def stop(self) -> bool: