Suz / slacker-cli

Messages to slack from command line

Home Page:https://pypi.python.org/pypi/slacker-cli/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

slacker-cli

https://travis-ci.org/juanpabloaj/slacker-cli.svg?branch=master https://coveralls.io/repos/juanpabloaj/slacker-cli/badge.png?branch=master https://pypip.in/v/slacker-cli/badge.png

Send messages to Slack from command line.

Usage

date | slacker -c slack_channel -t slack_token

Slack Token can be called from a enviroment variable, called SLACK_TOKEN.

You can set SLACK_TOKEN in your ~/.bashrc. Or you can use a shell script to call it with the -t option.

# ~/.bashrc
export SLACK_TOKEN="slack_token_string"
date | slacker -c slack_channel

Send message to user

date | slacker -u user_name

Send message to #real_engineering and echo binary to a user or a channel (message is signed as 'bot')

date | slacker -u user_name -b
date | slacker -c slack_channel -b

Upload file to channel:

date | slacker -c slack_channel -f image.png

Installation

pip install slacker-cli

Contributors

About

Messages to slack from command line

https://pypi.python.org/pypi/slacker-cli/

License:MIT License


Languages

Language:Python 100.0%