Send messages to Slack using your CLI.
Usage: slack.py [OPTIONS] [MESSAGE]... Options: --channel TEXT Name of the channel to post. --help Show this message and exit.
It requires one environment variable
SLACK_CLI_URL that is the URL of the webhhok (more info on how to get Slack webhook URL).
Also, you can configure the environment variable
SLACK_CLI_USERNAME to send messages to this channel by default when you dont define a channel with
The easiest way to use it is with Docker (so you don't have to install Python and/or its libraries).
You can find it on
$ docker run -e SLACK_CLI_USERNAME=$SLACK_CLI_USERNAME -e SLACK_CLI_URL=$SLACK_CLI_URL vidimensional/slack_cli message to post
May be you want to create an alias in your shell for this 😉.
# For Bash. $ alias slack='docker run -e SLACK_CLI_USERNAME=$SLACK_CLI_USERNAME -e SLACK_CLI_URL=$SLACK_CLI_URL vidimensional/slack_cli'
If you prefer to install the command only you can do it just typing:
$ make install
$ make uninstall
when you're tired of it.