From de5a7e745309d805b7bdde31fb4bb69d713697dc Mon Sep 17 00:00:00 2001 From: SileNce5k Date: Fri, 25 Jun 2021 19:05:59 +0200 Subject: [PATCH] Refactor help to make it look a tiny bit cleaner --- commands/help.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/commands/help.js b/commands/help.js index 354b21a..68d9912 100644 --- a/commands/help.js +++ b/commands/help.js @@ -32,13 +32,13 @@ module.exports = { let noHelp = 0; for (const file of commandFiles) { const command = require(`./${file}`); - + if(command.disabled) continue; if (args[0] == "admin") { - if (command.admin && !command.disabled) + if (command.admin) commands = commands + `${prefix}${command.name} | ${command.description}\n` }else if(!args[0]){ - if (!command.admin && !command.disabled) + if (!command.admin) commands = commands + `${prefix}${command.name} | ${command.description}\n` }else if(args[0] === command.name){ commands = commands + `${prefix}${command.name}\n`