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

29 lines
984 B
JavaScript
Raw Normal View History

2021-01-23 18:08:47 -06:00
module.exports = {
name: "stop",
2022-03-28 12:42:09 -05:00
description: "IT'S TIME TO STOP!... the bot",
2022-04-18 11:06:24 -05:00
async execute(_0, message, _1, config) {
2022-03-28 12:42:09 -05:00
if (message.author.id == config.ownerID) {
await message.channel.send({embed: {
"title": "<a:AnitroxWorking:697147309531594843> **Shutting Down...**",
"description": "See you next time!",
"color": 9442302,
"footer": {
"icon_url": message.author.displayAvatarURL(),
2022-03-28 12:42:09 -05:00
"text": config.footerTxt
},
}});
2022-03-28 12:42:09 -05:00
console.log("The bot is shutting down! Bye bye!")
process.exit();
} else {
await message.channel.send({embed: {
2022-03-28 12:42:09 -05:00
"title": "<:AnitroxDenied:809651936642203668> 403 Forbidden",
"description": "You need to be the bot owner to execute this command!",
"color": 13632027,
"footer": {
"icon_url": message.author.displayAvatarURL(),
2022-03-28 12:42:09 -05:00
"text": config.footerTxt
},
}});
}
}
}