mirror of
https://github.com/misenhower/splatoon3.ink.git
synced 2026-04-25 15:36:31 -05:00
13 lines
399 B
JavaScript
13 lines
399 B
JavaScript
import { CronJob } from "cron";
|
|
import { updateAll } from "./data/index.mjs";
|
|
import { warmCaches } from "./splatnet/index.mjs";
|
|
import { sendStatuses } from "./social/index.mjs";
|
|
|
|
export default function() {
|
|
new CronJob('5,20,35,50 * * * *', warmCaches, null, true);
|
|
new CronJob('15 0,2,5,10,15,30,45 * * * *', async () => {
|
|
await updateAll();
|
|
await sendStatuses();
|
|
}, null, true);
|
|
}
|