Added configurable config in help command

This commit is contained in:
Dominik Korsa 2018-12-19 21:25:07 +01:00
parent 9ac5808b5d
commit b371825a66

View file

@ -2,7 +2,7 @@ exports.run = (client, message, args) => {
function displayHelp(channel) {
var helpString = [
"**Lista dostępnych komend:**",
...help.map(e => `\`!${e.command}\`: ${e.text}`)
...help.map(e => `\`${client.config.prefix}${e.command}\`: ${e.text}`)
].join("\n");
channel.send(helpString);
}