2021-01-23 18:08:47 -06:00
|
|
|
module.exports = {
|
2022-03-26 03:33:18 -05:00
|
|
|
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) {
|
2022-03-26 11:02:17 -05:00
|
|
|
await message.channel.send({embed: {
|
2022-03-26 03:33:18 -05:00
|
|
|
"title": "<a:AnitroxWorking:697147309531594843> **Shutting Down...**",
|
|
|
|
"description": "See you next time!",
|
|
|
|
"color": 9442302,
|
2022-03-26 12:31:03 -05:00
|
|
|
"footer": {
|
|
|
|
"icon_url": message.author.displayAvatarURL(),
|
2022-03-28 12:42:09 -05:00
|
|
|
"text": config.footerTxt
|
2022-03-26 12:31:03 -05:00
|
|
|
},
|
2022-03-26 11:02:17 -05:00
|
|
|
}});
|
2022-03-28 12:42:09 -05:00
|
|
|
console.log("The bot is shutting down! Bye bye!")
|
|
|
|
process.exit();
|
2022-03-26 03:33:18 -05:00
|
|
|
} else {
|
2022-03-26 11:02:17 -05:00
|
|
|
await message.channel.send({embed: {
|
2022-03-28 12:42:09 -05:00
|
|
|
"title": "<:AnitroxDenied:809651936642203668> 403 Forbidden",
|
2022-03-26 03:33:18 -05:00
|
|
|
"description": "You need to be the bot owner to execute this command!",
|
|
|
|
"color": 13632027,
|
2022-03-26 12:31:03 -05:00
|
|
|
"footer": {
|
|
|
|
"icon_url": message.author.displayAvatarURL(),
|
2022-03-28 12:42:09 -05:00
|
|
|
"text": config.footerTxt
|
2022-03-26 12:31:03 -05:00
|
|
|
},
|
2022-03-26 11:02:17 -05:00
|
|
|
}});
|
2022-03-26 03:33:18 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|