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; type CloseCallback = (slot: TGSlot) => Promise; type LockCallback = (slot: TGSlot) => Promise; let _scheduledTasks: cron.ScheduledTask[] = [];