catslack icon indicating copy to clipboard operation
catslack copied to clipboard

Shell -> Slack the easy way

CatSlack

Inspired by SlackCat but rewritten in Go for easy portability.

This is a command line utility to post stdin to a configured Incoming Webhook on your slack channel. To use it have a script that outputs something useful to stdin. Maybe something like myCoolScript.sh...

$ cat myCoolScript.sh
#!/bin/bash
echo "I'm going to be posted in Slack!"

# Set your Slack Incoming Webhook URL:
$ export URL="https://hooks.slack.com/services/XXXXXXXXX/XXXXXXXXX/XXXXXXXXXXXXXXXXXXXXXXXX"

# Experience pleasure by using the catslack!
$ ./myCoolTestScript.sh | catslack