From 6b1c6c4860fa0d356967acfda9cc35ce41a17075 Mon Sep 17 00:00:00 2001 From: 1computer1 Date: Tue, 12 Mar 2019 12:30:41 -0400 Subject: [PATCH] Add more help information --- src/commands/about.js | 5 ++++- src/commands/help.js | 26 +++++++++++++++++++++++++- 2 files changed, 29 insertions(+), 2 deletions(-) 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: ' + ]); } }