Send messages to slack from command line
Project description
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 :dancer:
Installation
pip install slacker-cli
Tokens
You can either generate test tokens or create a bot user and use its token.
Contributors
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
slacker-cli-0.4.2.tar.gz
(3.8 kB
view details)
File details
Details for the file slacker-cli-0.4.2.tar.gz
.
File metadata
- Download URL: slacker-cli-0.4.2.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: Python-urllib/2.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e8d27f237450b5d5ddcf0eee7d4d8965777c1d5e9b70e7f08f655153eaf6000f |
|
MD5 | d2a993e3c4224a6e69265c72cf9a4521 |
|
BLAKE2b-256 | eec40fb4cdd5df0f02aa217d4a9367d13cbf68e89d98aaa9790e25363a2951ab |