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.
2022-03-26 03:33:18 -05:00
|
|
|
const { MessageEmbed } = require("discord.js");
|
|
|
|
|
2021-01-23 18:08:47 -06:00
|
|
|
module.exports = {
|
2022-03-26 03:33:18 -05:00
|
|
|
name: "stop",
|
|
|
|
description: "Stops the bot",
|
2022-03-26 03:58:15 -05:00
|
|
|
async execute(client, message, _, footer) {
|
2022-03-26 03:33:18 -05:00
|
|
|
if (message.author.id == 309427567004483586 || message.author.id == 475558313376088064) {
|
|
|
|
await message.channel.send(new MessageEmbed({
|
|
|
|
"title": "<a:AnitroxWorking:697147309531594843> **Shutting Down...**",
|
|
|
|
"description": "See you next time!",
|
|
|
|
"color": 9442302,
|
2022-03-26 03:58:15 -05:00
|
|
|
"footer": footer
|
2022-03-26 03:33:18 -05:00
|
|
|
}));
|
|
|
|
client.destroy();
|
|
|
|
} else {
|
|
|
|
await message.channel.send(new MessageEmbed({
|
|
|
|
"title": ":AnitroxDenied: Access Denied",
|
|
|
|
"description": "You need to be the bot owner to execute this command!",
|
|
|
|
"color": 13632027,
|
2022-03-26 03:58:15 -05:00
|
|
|
"footer": footer
|
2022-03-26 03:33:18 -05:00
|
|
|
}));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|