From ca6161933dd6e43659b25fa5c8656b0a4b9cd197 Mon Sep 17 00:00:00 2001 From: Anthony M <47640864+IDeletedSystem64@users.noreply.github.com> Date: Thu, 25 Feb 2021 22:10:17 -0600 Subject: [PATCH] final version of stop --- commands/stop.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/commands/stop.js b/commands/stop.js index fce8ae6..7b3fe5f 100644 --- a/commands/stop.js +++ b/commands/stop.js @@ -4,7 +4,7 @@ module.exports = { execute(client, message, args) { if (message.author.id == 309427567004483586) { const embed = { - "title": ":AnitroxWorking: **Shutting Down...**", + "title": " **Shutting Down...**", "description": "See you next time!", "color": 9442302, "footer": { @@ -13,8 +13,9 @@ module.exports = { } }; message.channel.send({ embed }); - client.destroy() - process.exit() + setTimeout(function(){ + client.destroy() + }, 5000); } else { const denied = { "title": ":AnitroxDenied: Access Denied",