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

32 lines
1.4 KiB
JavaScript
Raw Normal View History

2021-01-23 18:08:47 -06:00
module.exports = {
2021-02-25 21:58:39 -06:00
name: "stop",
description: "Stops the bot",
execute(client, message, args) {
2021-01-23 18:08:47 -06:00
if (message.author.id == 309427567004483586) {
2021-02-25 21:58:39 -06:00
const embed = {
2021-02-25 22:10:17 -06:00
"title": "<a:AnitroxWorking:697147309531594843> **Shutting Down...**",
2021-02-25 21:58:39 -06:00
"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 });
2021-02-25 22:10:17 -06:00
setTimeout(function(){
client.destroy()
}, 5000);
2021-01-23 18:08:47 -06:00
} else {
2021-02-25 21:58:39 -06:00
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 });
}
2021-01-23 18:08:47 -06:00
}
2021-02-25 21:58:39 -06:00
}