Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/juanpabloaj/slacker-cli
Messages to slack from command line
https://github.com/juanpabloaj/slacker-cli
command-line python slack
Last synced: 3 months ago
JSON representation
Messages to slack from command line
- Host: GitHub
- URL: https://github.com/juanpabloaj/slacker-cli
- Owner: juanpabloaj
- License: mit
- Created: 2014-08-24T03:10:30.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2023-01-13T13:12:16.000Z (about 2 years ago)
- Last Synced: 2024-05-02T01:18:51.065Z (9 months ago)
- Topics: command-line, python, slack
- Language: Python
- Homepage: https://pypi.python.org/pypi/slacker-cli/
- Size: 70.3 KB
- Stars: 184
- Watchers: 8
- Forks: 14
- Open Issues: 4
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
===========
slacker-cli
===========.. image:: https://github.com/juanpabloaj/slacker-cli/actions/workflows/test.yml/badge.svg
:target: https://github.com/juanpabloaj/slacker-cli/actions
.. image:: https://codecov.io/gh/juanpabloaj/slacker-cli/branch/master/graph/badge.svg?token=xkOKL9Ysv4
:target: https://codecov.io/gh/juanpabloaj/slacker-cliSend messages to `Slack `_ from command line.
Usage
=====.. code-block:: bash
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``
.. code-block:: bash
# ~/.bashrc
export SLACK_TOKEN="slack_token_string".. code-block:: bash
date | slacker -c slack_channel
Send message to user:
.. code-block:: bash
date | slacker -u user_name
Upload file to channel:
.. code-block:: bash
date | slacker -c slack_channel -f image.png
Add sender name and emoji avatar:
.. code-block:: bash
date | slacker -n SlackerBot -i :dancer:
Installation
============.. code-block:: bash
pip install slacker-cli
Tokens
======You can either `generate test tokens `_ or `create a bot user and use its token `_.
Contributors
============- `Alex Jurkiewicz `_
- `David Yen `_
- `Ethan Erchinger `_
- `Hugo van Kemenade `_
- `JuanPablo AJ `_
- `Kentaro Wada `_
- `Marc Abramowitz `_
- `Valentin Lab `_