This repository has been archived on 2024-01-30. You can view files and clone it, but cannot push or open issues or pull requests.
anitrox/commands/stop.js

28 lines
937 B
JavaScript
Raw Normal View History

2021-01-23 18:08:47 -06:00
module.exports = {
name: 'stop',
description: '(Owner Only) Shuts down the bot.',
execute( client, message, args, denied) {
2021-01-23 18:08:47 -06:00
if (message.author.id == 309427567004483586) {
message.channel.send("<a:NyabotWorking:697147309531594843> The bot is stopping!")
.then
2021-01-23 18:08:47 -06:00
client.destroy()
.catch(console.error)
} 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 });
2021-01-23 18:08:47 -06:00
}
}}