Skip to content

Commit

Permalink
Merge pull request #16 from StarfishC/main
Browse files Browse the repository at this point in the history
同步singbox配置插件-支持`onTask`
  • Loading branch information
Ayideyia authored Oct 17, 2024
2 parents 3ab8ce1 + 7678ac4 commit 60904bd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions plugins/GFS/plugin-sync-singbox-configuration-gists.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 60904bd

Please sign in to comment.