Skip to content

Instantly share code, notes, and snippets.

@jrode
Last active August 29, 2015 14:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jrode/787a76fcda343e13338c to your computer and use it in GitHub Desktop.
Save jrode/787a76fcda343e13338c to your computer and use it in GitHub Desktop.
Slack CLI Setup

Sending Slack messages from the command line

~/slack.sh:

#!/bin/bash
slackcli -h $1 -m "$2"

~/.bash_profile:

export SLACK_TOKEN=xoxp-329000000498-2300000923-000000000
alias slack='~/./slack.sh'
  • load them changes: source ~/.bash_profile
  • I also modified cmd.js to add bot name and emoji support, I should do a pull request

pull request

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment