diff --git a/commands/help.js b/commands/help.js index ecfe1d2..527f33a 100644 --- a/commands/help.js +++ b/commands/help.js @@ -11,7 +11,7 @@ module.exports = { "`help netmodules` to display help for netmodules" ], execute({ message, args, prefix, client }) { - var commands = " " + var commands = "" let commandFiles = fs.readdirSync('./commands').filter(file => file.endsWith('.js')); let x = 0 if (args[0] == "netmodules") { @@ -55,7 +55,7 @@ module.exports = { } } let regex = //g - if(commands === " "){ + if(commands === ""){ noHelp = 1; } commands = commands.replace(regex, prefix)