diff --git a/plugins/kid_photo_extractor/__init__.py b/plugins/kid_photo_extractor/__init__.py index 7e76961..0d2af41 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 8c9d976..e02229b 100644 --- a/plugins/kid_photo_extractor/main.py +++ b/plugins/kid_photo_extractor/main.py @@ -414,7 +414,7 @@ class KidPhotoExtractorPlugin(MessagePluginInterface): def start(self) -> bool: """启动插件""" - if self.enable: + if not self.enable: self.LOG.info(f"[{self.name}] 插件已启动") self.status = PluginStatus.RUNNING return False