Revert "If no moreHelp is available..."

This reverts commit bcff645ba7.
This commit is contained in:
SileNce5k 2022-03-24 23:33:30 +01:00
parent a055995b73
commit 4cba23dbe2
Failed to extract signature

View file

@ -50,29 +50,22 @@ module.exports = {
commands = commands + `${element}\n` commands = commands + `${element}\n`
}); });
} else { } else {
//commands = command.description;
noHelp = 1; noHelp = 1;
} }
break; break;
} }
} }
let regex = /<prefix>/g let regex = /<prefix>/g
if(commands === ""){
noHelp = 1;
}
commands = commands.replace(regex, prefix) commands = commands.replace(regex, prefix)
embed.addFields( embed.addFields(
{ name: " ", value: commands }, { name: " ", value: commands },
) )
if(commands === false){ if(noHelp == 0)
message.channel.send("There is no command with that name");
}
else if(noHelp == 0){
message.channel.send({embeds :[embed]}); message.channel.send({embeds :[embed]});
} else
else { message.channel.send("Either there is no command with that name, or there is no specific help for it.")
/*embed.addFields(
{name: "Help", value: commands}
)*/
message.channel.send({embeds :[embed]})
}
}, },
}; };