Revert "If no moreHelp is available..."
This reverts commit bcff645ba7
.
This commit is contained in:
parent
a055995b73
commit
4cba23dbe2
1 changed files with 6 additions and 13 deletions
|
@ -50,29 +50,22 @@ module.exports = {
|
|||
commands = commands + `${element}\n`
|
||||
});
|
||||
} else {
|
||||
//commands = command.description;
|
||||
noHelp = 1;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
let regex = /<prefix>/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.")
|
||||
},
|
||||
};
|
Loading…
Add table
Reference in a new issue