Fix help command

This commit is contained in:
SileNce5k 2021-07-18 11:53:31 +02:00
parent b0543a8eb6
commit c25e2bae71
No known key found for this signature in database
GPG key ID: C507260E7F2583AD

View file

@ -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") {