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

36 lines
1.0 KiB
JavaScript
Raw Normal View History

2021-01-23 18:08:47 -06:00
module.exports = {
name: require('path').parse(__filename).name,
2022-03-28 12:42:09 -05:00
description: "IT'S TIME TO STOP!... the bot",
async execute (_0, message, _1, config) {
if (message.author.id === config.ownerID) {
await message.channel.send({
embeds: [{
title: '<a:AnitroxWorking:697147309531594843> **Shutting Down...**',
description: 'See you next time!',
color: 9442302,
footer: {
icon_url: message.author.displayAvatarURL(),
text: config.footerTxt
}
}]
});
console.log('The bot is shutting down! Bye bye!');
2022-03-28 12:42:09 -05:00
process.exit();
} else {
await message.channel.send({
embeds: [{
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(),
text: config.footerTxt
}
}]
});
}
}
};