From 911485b02d041b4a90b6659fe9cfec7a1add8a74 Mon Sep 17 00:00:00 2001 From: Ruthenic Date: Tue, 18 Oct 2022 21:28:15 -0400 Subject: [PATCH] This is broken in prod for some godforsaken reason --- src/bot.ts | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/src/bot.ts b/src/bot.ts index 7203ff1..df517b7 100644 --- a/src/bot.ts +++ b/src/bot.ts @@ -19,25 +19,6 @@ initLocalCommands(); initCommands(); initAIs(); -let hasSent = false - -await BotEmitter.on("ready", (bot) => { - if (hasSent) return - Deno.addSignalListener("SIGINT", () => { - config.discord.channels.forEach(async channelId => { - await sendMessage(bot, channelId, { - content: "Apologies, bot going down for maintenance!" - }) - }) - }) - config.discord.channels.forEach(async channelId => { - await sendMessage(bot, channelId, { - content: "The bot is back online!" - }) - }) - hasSent = true -}) - await BotEmitter.emit("start", { token: Deno.env.get("TOKEN") ?? config.discord.token ?? (() => { throw new GoofyAhhException("No token?");