A command line utility to pipe text into Slack messages.
$ echo "anyone wanna grab lunch? :thumbsup:" | shlack random
$ gist < file.json | shlack luke
$ hub pull-request | shlack general
Set an environment variable SLACK_TOKEN
. You can get a token here: https://api.slack.com/docs/oauth-test-tokens
$ cargo build
$ echo hi | target/debug/shlack
This sends a message to Slackbot.
-v --verbose
-p --prepend
-a --append