diff --git a/commands/info/help.js b/commands/info/help.js index de82c05..8f3ef3c 100644 --- a/commands/info/help.js +++ b/commands/info/help.js @@ -50,29 +50,22 @@ module.exports = { commands = commands + `${element}\n` }); } else { - //commands = command.description; noHelp = 1; } break; } } let regex = //g + if(commands === ""){ + noHelp = 1; + } commands = commands.replace(regex, prefix) embed.addFields( { name: " ", value: commands }, ) - if(commands === false){ - message.channel.send("There is no command with that name"); - } - else if(noHelp == 0){ + if(noHelp == 0) message.channel.send({embeds :[embed]}); - } - else { - /*embed.addFields( - {name: "Help", value: commands} - )*/ - message.channel.send({embeds :[embed]}) - } - + else + message.channel.send("Either there is no command with that name, or there is no specific help for it.") }, }; \ No newline at end of file