mirror of
https://github.com/misenhower/splatoon3.ink.git
synced 2026-07-11 07:05:01 -05:00
36 lines
960 B
JavaScript
36 lines
960 B
JavaScript
import GearUpdater from "./updaters/GearUpdater.mjs";
|
|
import StageScheduleUpdater from "./updaters/StageScheduleUpdater.mjs";
|
|
import CoopUpdater from "./updaters/CoopUpdater.mjs";
|
|
import FestivalUpdater from "./updaters/FestivalUpdater.mjs";
|
|
import CurrentFestivalUpdater from "./updaters/CurrentFestivalUpdater.mjs";
|
|
|
|
function updaters() {
|
|
return [
|
|
new StageScheduleUpdater,
|
|
new GearUpdater,
|
|
new CoopUpdater,
|
|
new FestivalUpdater('US'),
|
|
new FestivalUpdater('EU'),
|
|
new FestivalUpdater('JP'),
|
|
new FestivalUpdater('AP'),
|
|
new CurrentFestivalUpdater('US'),
|
|
new CurrentFestivalUpdater('EU'),
|
|
new CurrentFestivalUpdater('JP'),
|
|
new CurrentFestivalUpdater('AP'),
|
|
];
|
|
}
|
|
|
|
export async function updateAll() {
|
|
console.info('Running all updaters...');
|
|
|
|
for (let updater of updaters()) {
|
|
try {
|
|
await updater.update();
|
|
} catch (e) {
|
|
console.error(e);
|
|
}
|
|
}
|
|
|
|
console.info('Done running updaters');
|
|
}
|