From 5ecd11ffb7d545fa3d880bbb325310f37bc9f230 Mon Sep 17 00:00:00 2001 From: SileNce5k Date: Sun, 27 Jun 2021 03:03:04 +0200 Subject: [PATCH] Remove space from commands variable --- commands/help.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)