Create entirely new stop command.

This commit is contained in:
Anthony M 2021-02-25 21:58:39 -06:00 committed by GitHub
parent bb7f7be305
commit 6a8559b33f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,28 +1,31 @@
module.exports = { module.exports = {
name: 'stop', name: "stop",
description: '(Owner Only) Shuts down the bot.', description: "Stops the bot",
execute( client, message, args, denied) { execute(client, message, args) {
if (message.author.id == 309427567004483586) { if (message.author.id == 309427567004483586) {
message.channel.send("<a:NyabotWorking:697147309531594843> The bot is stopping!") const embed = {
.then "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() client.destroy()
.catch(console.error) process.exit()
} else { } else {
const embed = { const denied = {
"title": denied + "**Access is denied**", "title": ":AnitroxDenied: Access Denied",
"color": 13632027, "description": "You need to be the bot owner to execute this command!",
"footer": { "color": 13632027,
"icon_url": "https://cdn.discordapp.com/attachments/549707869138714635/793524910172667964/Screenshot_26.png", "footer": {
"text": "Anitrox © IDeletedSystem64 2018-2021 All Rights Reserved." "icon_url": "https://media.discordapp.net/attachments/549707869138714635/793524910172667964/Screenshot_26.png",
}, "text": "Made with ❤ in Illinois | Anitrox © 2018-2021 IDeletedSystem64"
"fields": [ }
{ };
"name": "**What Happened?**", message.channel.send({ denied });
"value": "You don't have the appropriate permissions to run this command!" }
}
]
};
message.channel.send({ embed });
} }
}} }