From 9ac5808b5d01b99ac5d133b2a9921edcc0ddf8f3 Mon Sep 17 00:00:00 2001 From: Dominik Korsa Date: Wed, 19 Dec 2018 21:23:37 +0100 Subject: [PATCH] Removed reload command --- commands/reload.js | 20 -------------------- 1 file changed, 20 deletions(-) delete mode 100644 commands/reload.js diff --git a/commands/reload.js b/commands/reload.js deleted file mode 100644 index 38cdb25..0000000 --- a/commands/reload.js +++ /dev/null @@ -1,20 +0,0 @@ -exports.run = (client, message, args) => { - if(!message.channel.permissionsFor(message.member).has("MANAGE_MESSAGES", false)){ - message.channel.send("Nie masz permisji!") - return; - } - - if(!args || args.size < 1) return message.reply("Podaj nazwe komendy!"); - - var commandName = args[0]; - - if(!client.commands.has(commandName)) { - return message.reply("Ta komenda nie istnieje!"); - } - - delete require.cache[require.resolve(`./${commandName}.js`)]; - client.commands.delete(commandName); - var props = require(`./${commandName}.js`); - client.commands.set(commandName, props); - message.reply(`Komenda ${commandName} została ponownie załadowana.`); -}; \ No newline at end of file