diff --git a/src/commands/about.js b/src/commands/about.js index 1dd5abb..64777b7 100644 --- a/src/commands/about.js +++ b/src/commands/about.js @@ -8,7 +8,10 @@ class AboutCommand extends Command { } exec(message) { - return message.util.send('I do things!'); + return message.util.send([ + 'Comp_iler is made by 1Computer.', + 'Source code is available at .' + ]); } } diff --git a/src/commands/help.js b/src/commands/help.js index ed97b68..d1a8c47 100644 --- a/src/commands/help.js +++ b/src/commands/help.js @@ -8,7 +8,31 @@ class HelpCommand extends Command { } 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: ' + ]); } }