From 6a8559b33fb9d0eed508d0659025bcfb6a3567f5 Mon Sep 17 00:00:00 2001 From: Anthony M <47640864+IDeletedSystem64@users.noreply.github.com> Date: Thu, 25 Feb 2021 21:58:39 -0600 Subject: [PATCH] Create entirely new stop command. --- commands/stop.js | 49 +++++++++++++++++++++++++----------------------- 1 file changed, 26 insertions(+), 23 deletions(-) diff --git a/commands/stop.js b/commands/stop.js index 66a2a74..fce8ae6 100644 --- a/commands/stop.js +++ b/commands/stop.js @@ -1,28 +1,31 @@ - module.exports = { - name: 'stop', - description: '(Owner Only) Shuts down the bot.', - execute( client, message, args, denied) { + name: "stop", + description: "Stops the bot", + execute(client, message, args) { if (message.author.id == 309427567004483586) { - message.channel.send(" The bot is stopping!") - .then + const embed = { + "title": ":AnitroxWorking: **Shutting Down...**", + "description": "See you next time!", + "color": 9442302, + "footer": { + "icon_url": "https://media.discordapp.net/attachments/549707869138714635/793524910172667964/Screenshot_26.png", + "text": "Made with ❤ in Illinois | Anitrox © 2018-2021 IDeletedSystem64" + } + }; + message.channel.send({ embed }); client.destroy() - .catch(console.error) + process.exit() } else { - const embed = { - "title": denied + "**Access is denied**", - "color": 13632027, - "footer": { - "icon_url": "https://cdn.discordapp.com/attachments/549707869138714635/793524910172667964/Screenshot_26.png", - "text": "Anitrox © IDeletedSystem64 2018-2021 All Rights Reserved." - }, - "fields": [ - { - "name": "**What Happened?**", - "value": "You don't have the appropriate permissions to run this command!" - } - ] - }; - message.channel.send({ embed }); + const denied = { + "title": ":AnitroxDenied: Access Denied", + "description": "You need to be the bot owner to execute this command!", + "color": 13632027, + "footer": { + "icon_url": "https://media.discordapp.net/attachments/549707869138714635/793524910172667964/Screenshot_26.png", + "text": "Made with ❤ in Illinois | Anitrox © 2018-2021 IDeletedSystem64" + } + }; + message.channel.send({ denied }); + } } - }} \ No newline at end of file + } \ No newline at end of file