sendou.ink/app/routines/list.server.ts
2026-03-09 20:47:19 +02:00

37 lines
1.4 KiB
TypeScript

import { CloseExpiredCommissionsRoutine } from "./closeExpiredCommissions";
import { DeleteOldNotificationsRoutine } from "./deleteOldNotifications";
import { NotifyCheckInStartRoutine } from "./notifyCheckInStart";
import { NotifyPlusServerVotingRoutine } from "./notifyPlusServerVoting";
import { NotifyScrimStartingSoonRoutine } from "./notifyScrimStartingSoon";
import { NotifySeasonStartRoutine } from "./notifySeasonStart";
import { SetOldGroupsAsInactiveRoutine } from "./setOldGroupsAsInactive";
import { SyncLiveStreamsRoutine } from "./syncLiveStreams";
import { SyncSplatoonRotationsRoutine } from "./syncSplatoonRotations";
import { UpdatePatreonDataRoutine } from "./updatePatreonData";
/** List of Routines that should occur hourly at XX:00 */
export const everyHourAt00 = [
NotifySeasonStartRoutine,
NotifyPlusServerVotingRoutine,
NotifyCheckInStartRoutine,
NotifyScrimStartingSoonRoutine,
];
/** List of Routines that should occur hourly at XX:30 */
export const everyHourAt30 = [
SetOldGroupsAsInactiveRoutine,
UpdatePatreonDataRoutine,
];
/** List of Routines that should occur daily */
export const daily = [
DeleteOldNotificationsRoutine,
CloseExpiredCommissionsRoutine,
];
/** List of Routines that should occur every 2 hours */
export const everyTwoHours = [SyncSplatoonRotationsRoutine];
/** List of Routines that should occur every 2 minutes */
export const everyTwoMinutes = [SyncLiveStreamsRoutine];