From 6a1e54ffbb3668854103d3296a553aaca9c8d355 Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Wed, 22 Jul 2020 20:34:32 -0400 Subject: Fixed stop command --- bot.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot.js b/bot.js index 8a9182c..d8359bc 100644 --- a/bot.js +++ b/bot.js @@ -163,7 +163,7 @@ bot.on('message', async msg => { .setColor('#0066ff') let statusChannel = bot.channels.cache.get(config.statusChannel); if (!statusChannel) return console.error('The status channel does not exist! Skipping.'); - statusChannel.send(statusEmbed); + await statusChannel.send(statusEmbed); console.log('Powering off...'); dispatcher.destroy(); bot.destroy(); -- cgit v1.2.3