From c473664918881d1c4eabfb826c922065fc6d4398 Mon Sep 17 00:00:00 2001 From: Anthony M <47640864+IDeletedSystem64@users.noreply.github.com> Date: Sat, 23 Jan 2021 17:58:05 -0600 Subject: [PATCH] Delete restart.js --- commands/restart.js | 21 --------------------- 1 file changed, 21 deletions(-) delete mode 100644 commands/restart.js diff --git a/commands/restart.js b/commands/restart.js deleted file mode 100644 index 808a95e..0000000 --- a/commands/restart.js +++ /dev/null @@ -1,21 +0,0 @@ - -module.exports = { - name: 'restart', - description: '(Owner Only) Shuts down the bot.', - execute(client, message, args) { - const { token } = require('./config.json'); - if (message.author.id == 309427567004483586) { - message.channel.send(" Restarting...").then - client.destroy() - .catch(console.error) - .then - console.log("Restarting!") - console.log("Getting ready") - console.log("Ready to start!") - client.login(token); - message.channel.send("<:NyabotSuccess:697211376740859914> Restart Successful") - console.log("All systems go") - } else { - message.channel.send("<:NyabotDenied:697145462565896194> Access Denied, You must be bot owner to execute this command."); - } - }}