Refactor help to make it look a tiny bit cleaner

This commit is contained in:
SileNce5k 2021-06-25 19:05:59 +02:00
parent 99945f8db8
commit de5a7e7453
No known key found for this signature in database
GPG key ID: C507260E7F2583AD

View file

@ -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`