From d4696b15a302076f7a655389fc8abe19c3fd6cb8 Mon Sep 17 00:00:00 2001 From: rhearmas <34490428+qu-ota@users.noreply.github.com> Date: Wed, 11 Dec 2019 10:46:14 -0500 Subject: [PATCH] beginning to fix reload command so it loads commands in a specific directory --- commands/Utility/reload.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/Utility/reload.js b/commands/Utility/reload.js index 976e4fb..c1a89be 100644 --- a/commands/Utility/reload.js +++ b/commands/Utility/reload.js @@ -4,7 +4,7 @@ exports.run = async (client, message, args, level) => { let response = await client.unloadCommand(args[0]); if (response) return message.reply(`Error Unloading: ${response}`); - response = client.loadCommand(command.help.name); + response = client.loadCommand(`${command.help.name}`); if (response) return message.reply(`Error Loading: ${response}`); message.reply(`command \`${command.help.name}\` has been reloaded successfully.`); @@ -20,6 +20,6 @@ exports.conf = { exports.help = { name: "reload", category: "System", - description: "Reloads a command that\"s been modified.", + description: "Reloads a command that\'s been modified.", usage: "reload [command]" }; \ No newline at end of file