diff --git a/package.json b/package.json index d607859..5db794e 100644 --- a/package.json +++ b/package.json @@ -146,7 +146,7 @@ "ChatGPT": { "name": "ChatGPT", "description": "消息交互支持与ChatGPT对话。", - "version": "1.2", + "version": "1.3", "icon": "Chatgpt_A.png", "author": "jxxghp", "level": 1 @@ -210,7 +210,7 @@ "BrushFlow": { "name": "站点刷流", "description": "自动托管刷流,将会提高对应站点的访问频率。", - "version": "1.2", + "version": "1.3", "icon": "brush.jpg", "author": "jxxghp", "level": 2 diff --git a/plugins/brushflow/__init__.py b/plugins/brushflow/__init__.py index b49d1bc..a5968fe 100644 --- a/plugins/brushflow/__init__.py +++ b/plugins/brushflow/__init__.py @@ -31,7 +31,7 @@ class BrushFlow(_PluginBase): # 插件图标 plugin_icon = "brush.jpg" # 插件版本 - plugin_version = "1.2" + plugin_version = "1.3" # 插件作者 plugin_author = "jxxghp" # 作者主页 @@ -232,12 +232,15 @@ class BrushFlow(_PluginBase): if not self._brushsites or not self._downloader: return - # 启动任务 + # 增加任务 self._task_enable = True + self._scheduler = BackgroundScheduler(timezone=settings.TZ) + self._scheduler.add_job(self.check, 'interval', + minutes=self._check_interval, + name="站点刷流检查服务") # 仅一次 if self._onlyonce: - self._scheduler = BackgroundScheduler(timezone=settings.TZ) logger.info(f"站点刷流服务启动,立即运行一次") self._scheduler.add_job(self.brush, 'date', run_date=datetime.now( @@ -247,14 +250,11 @@ class BrushFlow(_PluginBase): # 关闭一次性开关 self._onlyonce = False self.__update_config() - if self._scheduler.get_jobs(): - # 增加检查任务 - self._scheduler.add_job(self.check, 'interval', - minutes=self._check_interval, - name="站点刷流检查服务") - # 启动服务 - self._scheduler.print_jobs() - self._scheduler.start() + + # 启动服务 + if self._scheduler.get_jobs(): + self._scheduler.print_jobs() + self._scheduler.start() def get_state(self) -> bool: return True if self._enabled and self._brushsites and self._downloader else False diff --git a/plugins/chatgpt/__init__.py b/plugins/chatgpt/__init__.py index 5bf95b7..52d3560 100644 --- a/plugins/chatgpt/__init__.py +++ b/plugins/chatgpt/__init__.py @@ -16,7 +16,7 @@ class ChatGPT(_PluginBase): # 插件图标 plugin_icon = "Chatgpt_A.png" # 插件版本 - plugin_version = "1.2" + plugin_version = "1.3" # 插件作者 plugin_author = "jxxghp" # 作者主页 @@ -176,6 +176,28 @@ class ChatGPT(_PluginBase): } ] }, + { + 'component': 'VRow', + 'content': [ + { + 'component': 'VCol', + 'props': { + 'cols': 12, + }, + 'content': [ + { + 'component': 'VAlert', + 'props': { + 'type': 'info', + 'variant': 'tonal', + 'text': '开启插件后,消息交互时使用请[问帮你]开头,或者以?号结尾,或者超过10个汉字/单词,则会触发ChatGPT回复。' + '开启辅助识别后,内置识别功能无法正常识别种子/文件名称时,将使用ChatGTP进行AI辅助识别,可以提升动漫等非规范命名的识别成功率。' + } + } + ] + } + ] + } ] } ], {