Fix help command
This commit is contained in:
parent
b0543a8eb6
commit
c25e2bae71
1 changed files with 2 additions and 2 deletions
|
@ -13,7 +13,7 @@ module.exports = {
|
||||||
],
|
],
|
||||||
execute({ message, args, prefix, client }) {
|
execute({ message, args, prefix, client }) {
|
||||||
let commands = ""
|
let commands = ""
|
||||||
let commandFiles = getCommandFiles('../../commands')
|
let commandFiles = getCommandFiles('commands/')
|
||||||
let x = 0
|
let x = 0
|
||||||
if (args[0] == "netmodules") {
|
if (args[0] == "netmodules") {
|
||||||
commandFiles = fs.readdirSync('../../netload').filter(file => file.endsWith('.js'));
|
commandFiles = fs.readdirSync('../../netload').filter(file => file.endsWith('.js'));
|
||||||
|
@ -33,7 +33,7 @@ module.exports = {
|
||||||
|
|
||||||
let noHelp = 0;
|
let noHelp = 0;
|
||||||
for (const file of commandFiles) {
|
for (const file of commandFiles) {
|
||||||
const command = require(`./${file}`);
|
const command = require(`../../${file}`);
|
||||||
if(command.disabled) continue;
|
if(command.disabled) continue;
|
||||||
|
|
||||||
if (args[0] == "admin") {
|
if (args[0] == "admin") {
|
||||||
|
|
Loading…
Add table
Reference in a new issue