Skip to content

Commit 0ce9597

Browse files
committed
Clarify help.
1 parent 4c3ab1c commit 0ce9597

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

public/index.html.erb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,10 @@
2626
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script>
2727
</p>
2828
<p>
29-
For example, try posting a message into the <b>#general</b> channel with <pre>chat postMessage --as_user=true --text="Hello World" --channel=#general</pre>
29+
For example, DM the bot.
30+
<pre>auth test</pre>
31+
Then invite the bot to <b>#general</b> and post a message into it via a DM.
32+
<pre>chat postMessage --as_user=true --text="Hello World" --channel=#general</pre>
3033
</p>
3134
<p>
3235
<small>

slack-api-explorer/commands/help.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ def self.help_for(expression = nil)
1818
Commands
1919
--------
2020
#{`slack help`.gsub(/.*?(COMMANDS)/m, '').gsub(/^( )/, '')}
21+
22+
Not sure where to start? Try "auth test", then invite the bot to #general and DM it "chat postMessage --as_user=true --text='Hello World' --channel=#general".
23+
2124
Most commands contain subcommands, try "help <command>" (eg. "help api") to get a list of subcommands.
2225
```
2326
EOS

0 commit comments

Comments
 (0)