Create entirely new stop command.
This commit is contained in:
parent
bb7f7be305
commit
6a8559b33f
1 changed files with 26 additions and 23 deletions
|
@ -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!")
|
|
||||||
.then
|
|
||||||
client.destroy()
|
|
||||||
.catch(console.error)
|
|
||||||
} else {
|
|
||||||
const embed = {
|
const embed = {
|
||||||
"title": denied + "**Access is denied**",
|
"title": ":AnitroxWorking: **Shutting Down...**",
|
||||||
"color": 13632027,
|
"description": "See you next time!",
|
||||||
|
"color": 9442302,
|
||||||
"footer": {
|
"footer": {
|
||||||
"icon_url": "https://cdn.discordapp.com/attachments/549707869138714635/793524910172667964/Screenshot_26.png",
|
"icon_url": "https://media.discordapp.net/attachments/549707869138714635/793524910172667964/Screenshot_26.png",
|
||||||
"text": "Anitrox © IDeletedSystem64 2018-2021 All Rights Reserved."
|
"text": "Made with ❤ in Illinois | Anitrox © 2018-2021 IDeletedSystem64"
|
||||||
},
|
|
||||||
"fields": [
|
|
||||||
{
|
|
||||||
"name": "**What Happened?**",
|
|
||||||
"value": "You don't have the appropriate permissions to run this command!"
|
|
||||||
}
|
}
|
||||||
]
|
|
||||||
};
|
};
|
||||||
message.channel.send({ embed });
|
message.channel.send({ embed });
|
||||||
|
client.destroy()
|
||||||
|
process.exit()
|
||||||
|
} else {
|
||||||
|
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 });
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}}
|
|
Reference in a new issue