Skip to main content

Send messages to slack from command line

Project description

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

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
slacker-cli-0.4.0.tar.gz (3.6 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page