Skip to content

erchn/slacker-cli

 
 

Repository files navigation

slacker-cli

image

image

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

# ~/.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 :dancer:

Installation

pip install slacker-cli

Contributors

About

Messages to slack from command line

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%