From 81ca83739e762615fcb18ee423f9df9a5f1c5391 Mon Sep 17 00:00:00 2001 From: StarfishC Date: Wed, 16 Oct 2024 18:07:44 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=AF=E6=8C=81=E8=AE=A1=E5=88=92=E4=BB=BB?= =?UTF-8?q?=E5=8A=A1=E8=BF=90=E8=A1=8C=E6=8F=92=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/GFS/plugin-sync-singbox-configuration-gists.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/plugins/GFS/plugin-sync-singbox-configuration-gists.js b/plugins/GFS/plugin-sync-singbox-configuration-gists.js index 318485e..f9de9ce 100644 --- a/plugins/GFS/plugin-sync-singbox-configuration-gists.js +++ b/plugins/GFS/plugin-sync-singbox-configuration-gists.js @@ -2,6 +2,11 @@ const onRun = async () => { await updateGist(); }; +const onTask = async () => { + await updateGist(); + return '更新 Gist.' +}; + const updateGist = async () => { if (!Plugin.GistId) throw '未配置GIST ID'; const { id: messageId } = Plugins.message.info('正在更新 Gist...', 60 * 60 * 1000); @@ -41,4 +46,4 @@ async function updateGistFile(gistId, configJsonContent) { throw body.message } return 'ok' -} \ No newline at end of file +}