diff --git a/commands/info/help.js b/commands/info/help.js index 59bae3c..f912124 100644 --- a/commands/info/help.js +++ b/commands/info/help.js @@ -50,22 +50,28 @@ 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: "General", value: commands }, ) - if(noHelp == 0) + if(commands === false){ + message.channel.send("There is no command with that name"); + } + else if(noHelp == 0){ 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.") + } + else { + embed.addFields( + {name: "Help", value: commands} + ) + } + }, }; \ No newline at end of file