Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pschmitt/slack-react
React with alphabetic emojis to Slack messages
https://github.com/pschmitt/slack-react
reactions slack
Last synced: about 2 months ago
JSON representation
React with alphabetic emojis to Slack messages
- Host: GitHub
- URL: https://github.com/pschmitt/slack-react
- Owner: pschmitt
- License: gpl-3.0
- Created: 2023-07-14T09:15:14.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-03-12T07:23:27.000Z (10 months ago)
- Last Synced: 2024-10-13T02:10:00.937Z (3 months ago)
- Topics: reactions, slack
- Language: Python
- Homepage: https://pypi.org/project/slack-react/
- Size: 69.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 💬 slack-react 🚀
Automate your Slack reactions! This Python project allows you to automatically
add emoji reactions to Slack messages. The emojis are generated based on a
user-provided message, with each character in the message converted to a
corresponding emoji.## 📚 Table of Contents
- [Installation](#installation)
- [Usage](#usage)
- [Examples](#examples)
- [License](#license)## ⚙️ Installation
```bash
pipx install slack-react
```## 🛠 Usage
Before using this project, you need to get your Slack OAUTH token.
Refer to [this guide](https://api.slack.com/authentication/token-types) to
create and install a Slack app to get your token.Once you have your token, set it as an environment variable.
```bash
export SLACK_OAUTH_USER_TOKEN=your-slack-token
```Now you're ready to use the project! You can run the script using the following
command:```bash
python slack_react.py "your message" -c "your-channel"
```Replace `"your message"` with the message you want to spell out with reactions.
Replace `"your-channel"` with the name of the channel where you want to add the
reactions.
The script will convert each character in the message to a corresponding emoji
and add these emojis as reactions to the most recent message in the
specified channel.## 📖 Examples
```bash
python slack_react.py -c "general" "hello"
```This command will spell out "hello" in emoji reactions in the "general" channel.
## 📜 License
This project is licensed under the [GPL-3.0 License](./LICENSE).