This commit is contained in:
2025-11-16 13:32:35 +08:00
parent e35712820f
commit 2c800d336c
11 changed files with 414 additions and 18 deletions

11
agent/corn.ts Normal file
View File

@@ -0,0 +1,11 @@
import cron from 'node-cron';
import './index.ts'
import { main } from './task.ts';
// 每2个小时执行一次更新任务
cron.schedule('0 */2 * * *', async () => {
main()
});
// first run
main()