Skip to content

Instantly share code, notes, and snippets.

@chrislopresto
chrislopresto / slack_message
Last active January 3, 2016 09:29
A bash executable with command line options to post into slack channels
#!/bin/bash
# A convenient way to post to Slack channels from the command line... as Lionel Richie
#
# Usage
# ./slack_message
# ./slack_message -t "Hello..."
# ./slack_message -i https://pbs.twimg.com/profile_images/421128111086764032/zv1APHT5.jpeg -u justin -t "I'll be your platinum, I'll be your silver, I'll be your gold"
TOKEN='YOUR_TOKEN_GOES_HERE'