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`
|
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]})
|
|
||||||
}
|
|
||||||
|
|
||||||
},
|
},
|
||||||
};
|
};
|
Loading…
Add table
Reference in a new issue