i have to test in prod because 💀

pull/1/head
Drake 2 years ago
parent baedce0845
commit 233f078a46

@ -19,7 +19,10 @@ 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, {
@ -32,6 +35,7 @@ await BotEmitter.on("ready", (bot) => {
content: "The bot is back online!"
})
})
hasSent = true
})
await BotEmitter.emit("start", {

Loading…
Cancel
Save