Pipe directly to Slack from your shell
Install with pip:
pip install --upgrade git+https://github.com/olanmatt/slackerr.git
You must generate a Slack OAuth token. This token can be passed as an argument (see below).
Alternatively, any of the CONFIG
or command line arguments can be persisted in ~/.slackerr
in JSON format.
For example:
{
"token": "xoxp-XXXXXXXXXXX-XXXXXXXXXXX-XXXXXXXXXXX-XXXXXXXXXX",
"channel": "random",
"username": "mybot",
"verbose": true
}
slackerr [options] [message]
-h, --help show this help message and exit
-t TOKEN, --token TOKEN
Slack API authentication token
-c CHANNEL, --channel CHANNEL
specify the channel to send to
-u USERNAME, --username USERNAME
specify the username to send as
--formatted assume message is preformatted
--live actively send from stdin
-v, --verbose increase output verbosity
ls -l | slackerr
slackerr < README.md
tail -f some.log | ./slackerr --live
slackerr --username olanmatt --channel bots "Hello, world!"
slackerr --formatted "*Hello*, _world_!"