From b5cb18171e2cff74a8e0513a372b88cceba99bb8 Mon Sep 17 00:00:00 2001 From: Anthony M <47640864+IDeletedSystem64@users.noreply.github.com> Date: Sat, 23 Jan 2021 18:08:47 -0600 Subject: [PATCH] Add files via upload --- commands/stop.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 commands/stop.js diff --git a/commands/stop.js b/commands/stop.js new file mode 100644 index 0000000..46a1e6b --- /dev/null +++ b/commands/stop.js @@ -0,0 +1,13 @@ + +module.exports = { + name: 'stop', + description: '(Owner Only) Shuts down the bot.', + execute(client, message, args) { + if (message.author.id == 309427567004483586) { + message.channel.send(" Shutting Down...").then + client.destroy() + .catch(console.error) + } else { + message.channel.send("<:NyabotDenied:697145462565896194> Access Denied, You must be bot owner to execute this command."); + } + }} \ No newline at end of file