beginning to fix reload command so it loads commands in a specific directory
This commit is contained in:
parent
96b94beafa
commit
d4696b15a3
|
@ -4,7 +4,7 @@ exports.run = async (client, message, args, level) => {
|
||||||
let response = await client.unloadCommand(args[0]);
|
let response = await client.unloadCommand(args[0]);
|
||||||
if (response) return message.reply(`Error Unloading: ${response}`);
|
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}`);
|
if (response) return message.reply(`Error Loading: ${response}`);
|
||||||
|
|
||||||
message.reply(`command \`${command.help.name}\` has been reloaded successfully.`);
|
message.reply(`command \`${command.help.name}\` has been reloaded successfully.`);
|
||||||
|
@ -20,6 +20,6 @@ exports.conf = {
|
||||||
exports.help = {
|
exports.help = {
|
||||||
name: "reload",
|
name: "reload",
|
||||||
category: "System",
|
category: "System",
|
||||||
description: "Reloads a command that\"s been modified.",
|
description: "Reloads a command that\'s been modified.",
|
||||||
usage: "reload [command]"
|
usage: "reload [command]"
|
||||||
};
|
};
|
Loading…
Reference in New Issue