Add more help information
This commit is contained in:
parent
b2e3eca02b
commit
6b1c6c4860
2 changed files with 29 additions and 2 deletions
|
@ -8,7 +8,10 @@ class AboutCommand extends Command {
|
||||||
}
|
}
|
||||||
|
|
||||||
exec(message) {
|
exec(message) {
|
||||||
return message.util.send('I do things!');
|
return message.util.send([
|
||||||
|
'Comp_iler is made by 1Computer.',
|
||||||
|
'Source code is available at <https://github.com/1Computer1/comp_iler>.'
|
||||||
|
]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,31 @@ class HelpCommand extends Command {
|
||||||
}
|
}
|
||||||
|
|
||||||
exec(message) {
|
exec(message) {
|
||||||
return message.util.send('Maybe later.');
|
return message.util.send([
|
||||||
|
'**Usage:**',
|
||||||
|
'Put a `>` before a code block with a language or an inline code block that has a language to execute it.',
|
||||||
|
'You can add options inside `[]` after the `>`.',
|
||||||
|
'',
|
||||||
|
'**Examples:**',
|
||||||
|
'```',
|
||||||
|
'>`\u200B``py',
|
||||||
|
'print(\'Hello world!\');',
|
||||||
|
'`\u200B``',
|
||||||
|
'',
|
||||||
|
'>`hs main = print (1 + 1)`',
|
||||||
|
'',
|
||||||
|
'>[harmony]`\u200B``js',
|
||||||
|
'class Foo { bar = 1; }',
|
||||||
|
'console.log(new Foo().bar);',
|
||||||
|
'`\u200B``',
|
||||||
|
'```',
|
||||||
|
'**Supported languages:**',
|
||||||
|
'- JavaScript',
|
||||||
|
'- Python',
|
||||||
|
'- Haskell',
|
||||||
|
'',
|
||||||
|
'Read the readme for more information: <https://github.com/1Computer1/comp_iler>'
|
||||||
|
]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue