Awesome Open Source
Awesome Open Source

slacker-cli

https://codecov.io/gh/juanpabloaj/slacker-cli/branch/master/graph/badge.svg?token=xkOKL9Ysv4

Send messages to Slack from command line.

Usage

date | slacker -c slack_channel -t slack_token

The Slack token can be called from an enviroment variable, called SLACK_TOKEN.

You can set SLACK_TOKEN in your ~/.bashrc

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

Send message to user:

date | slacker -u user_name

Upload file to channel:

date | slacker -c slack_channel -f image.png

Add sender name and emoji avatar:

date | slacker -n SlackerBot -i 💃

Installation

pip install slacker-cli

Tokens

You can either generate test tokens or create a bot user and use its token.

Contributors

Alternatives To Slacker Cli
Select To Compare


Alternative Project Comparisons
Related Awesome Lists
Top Programming Languages
Top Projects

Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
Python (836,678
Command Line (131,782
Cli (131,578
Bash (18,861
Line (17,847
Slack (13,010