去掉插件
This commit is contained in:
@@ -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()
|
||||||
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user