From 5f8bf29696c7c7c7f2643dd55ac5cf52db710a5b Mon Sep 17 00:00:00 2001 From: MatteZ02 <47610069+MatteZ02@users.noreply.github.com> Date: Mon, 24 Feb 2020 21:17:24 +0200 Subject: [PATCH] Create restart.js --- commands/restart.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 commands/restart.js diff --git a/commands/restart.js b/commands/restart.js new file mode 100644 index 00000000..7539e089 --- /dev/null +++ b/commands/restart.js @@ -0,0 +1,15 @@ +module.exports = { + name: 'restart', + alias: 'none', + usage: '', + description: 'Restart the bot', + onlyDev: true, + permission: 'none', + category: 'util', + async execute(msg, args, client, Discord, prefix, command) { + client.destroy() + const MusicClient = require('../struct/client.js'); + const client = new MusicClient({}); + msg.channel.send('restarted!'); + } +};