Skip to content

Commit

Permalink
Clarify help.
Browse files Browse the repository at this point in the history
  • Loading branch information
dblock committed Oct 20, 2024
1 parent 4c3ab1c commit 0ce9597
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 4 additions & 1 deletion public/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@
<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>
</p>
<p>
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>
For example, DM the bot.
<pre>auth test</pre>
Then invite the bot to <b>#general</b> and post a message into it via a DM.
<pre>chat postMessage --as_user=true --text="Hello World" --channel=#general</pre>
</p>
<p>
<small>
Expand Down
3 changes: 3 additions & 0 deletions slack-api-explorer/commands/help.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ def self.help_for(expression = nil)
Commands
--------
#{`slack help`.gsub(/.*?(COMMANDS)/m, '').gsub(/^( )/, '')}
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".
Most commands contain subcommands, try "help <command>" (eg. "help api") to get a list of subcommands.
```
EOS
Expand Down

0 comments on commit 0ce9597

Please sign in to comment.