From 24bafc4c20189789f6155734ad01953b47182975 Mon Sep 17 00:00:00 2001 From: liuwei Date: Tue, 15 Apr 2025 14:28:01 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=B3=E9=97=AD=E6=8F=92=E4=BB=B6=E5=8A=A0?= =?UTF-8?q?=E8=BD=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/kid_photo_extractor/__init__.py | 12 ++++++------ plugins/kid_photo_extractor/main.py | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) 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