From 55be4eb4f8a71a7a646e0f8a518e1e9644e72141 Mon Sep 17 00:00:00 2001 From: IDeletedSystem64 Date: Mon, 28 Mar 2022 12:42:09 -0500 Subject: [PATCH] Stop should now end the process --- commands/stop.js | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/commands/stop.js b/commands/stop.js index a106573..95188bc 100644 --- a/commands/stop.js +++ b/commands/stop.js @@ -1,26 +1,27 @@ module.exports = { name: "stop", - description: "Stops the bot", - async execute(client, message, _, footerTxt) { - if (message.author.id == 309427567004483586 || message.author.id == 475558313376088064) { + description: "IT'S TIME TO STOP!... the bot", + async execute(client, message, config) { + if (message.author.id == config.ownerID) { await message.channel.send({embed: { "title": " **Shutting Down...**", "description": "See you next time!", "color": 9442302, "footer": { "icon_url": message.author.displayAvatarURL(), - "text": footerTxt + "text": config.footerTxt }, }}); - client.destroy(); + console.log("The bot is shutting down! Bye bye!") + process.exit(); } else { await message.channel.send({embed: { - "title": ":AnitroxDenied: Access Denied", + "title": "<:AnitroxDenied:809651936642203668> 403 Forbidden", "description": "You need to be the bot owner to execute this command!", "color": 13632027, "footer": { "icon_url": message.author.displayAvatarURL(), - "text": footerTxt + "text": config.footerTxt }, }}); }