tg-bot-ts/src/systems/slots.ts

12 lines
421 B
TypeScript

import cron from "node-cron";
import { Client, TextChannel } from "discord.js";
import { Config } from "./config";
import { TGSlot } from "../types";
import { polls, updatePollMessage } from "@systems/poll";
type PollCallback = (slot: TGSlot) => Promise<void>;
type CloseCallback = (slot: TGSlot) => Promise<void>;
type LockCallback = (slot: TGSlot) => Promise<void>;
let _scheduledTasks: cron.ScheduledTask[] = [];