Add reactions that spell out messages to Slack messages
Project description
💬 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
pipx install slack-react
🛠 Usage
Before using this project, you need to get your Slack OAUTH token.
Refer to this guide to create and install a Slack app to get your token.
Once you have your token, set it as an environment variable.
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:
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
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.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for slack_react-0.3.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6aa34854764aa18dec0eaa5307d0eed4018a140117e03b93878674a068685277 |
|
MD5 | ff9a1ca007a2256b0ceed336d03e4042 |
|
BLAKE2b-256 | f65c71beefa80279af1cfe18ca5164a9996cc84787285192a568d42155b08e7e |