From c25e2bae711a82a414ae873ee7c5028aaa05a2f0 Mon Sep 17 00:00:00 2001 From: SileNce5k Date: Sun, 18 Jul 2021 11:53:31 +0200 Subject: [PATCH] Fix help command --- commands/info/help.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/info/help.js b/commands/info/help.js index ba9a10e..3efa236 100644 --- a/commands/info/help.js +++ b/commands/info/help.js @@ -13,7 +13,7 @@ module.exports = { ], execute({ message, args, prefix, client }) { let commands = "" - let commandFiles = getCommandFiles('../../commands') + let commandFiles = getCommandFiles('commands/') let x = 0 if (args[0] == "netmodules") { commandFiles = fs.readdirSync('../../netload').filter(file => file.endsWith('.js')); @@ -33,7 +33,7 @@ module.exports = { let noHelp = 0; for (const file of commandFiles) { - const command = require(`./${file}`); + const command = require(`../../${file}`); if(command.disabled) continue; if (args[0] == "admin") {