beginning to fix reload command so it loads commands in a specific directory

This commit is contained in:
rhearmas 2019-12-11 10:46:14 -05:00
parent 96b94beafa
commit d4696b15a3
1 changed files with 2 additions and 2 deletions

View File

@ -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]"
};