Use config prefix for help info

This commit is contained in:
1computer1 2019-06-03 18:45:55 -04:00
parent 8d2b7cd27e
commit c8a5b436ab

View file

@ -9,12 +9,13 @@ class HelpCommand extends Command {
} }
exec(message) { exec(message) {
const { prefix, codePrefix } = this.client.config;
return message.util.send([ return message.util.send([
'**Usage:**', '**Usage:**',
'Put a `>` before a code block or inline codeblock that starts with a language code to execute it.', `Put a \`${codePrefix}\` before a code block or inline codeblock that starts with a language code to execute it.`,
'You can add options, separated by semicolons, after the `>`.', `You can add options, separated by semicolons, after the \`${codePrefix}\`.`,
'', '',
'For list of enabled languages, use the `>languages` command.', `For list of enabled languages, use the \`${prefix}languages\` command.`,
'', '',
'See the readme for usage examples, supported languages, and options: <https://github.com/1Computer1/comp_iler>' 'See the readme for usage examples, supported languages, and options: <https://github.com/1Computer1/comp_iler>'
]); ]);