Skip to content

olanmatt/slackerr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

slackerr

Build Status

Pipe directly to Slack from your shell

demo

Setup

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
}

Usage

slackerr [options] [message]

Options

  -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

Examples

ls -l | slackerr
slackerr < README.md
tail -f some.log | ./slackerr --live
slackerr --username olanmatt --channel bots "Hello, world!"
slackerr --formatted "*Hello*, _world_!"

About

Pipe directly to Slack from your shell

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages