Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/balysv/back-slot
Post messages on Slack as a bot
https://github.com/balysv/back-slot
fun python-3 slack slack-bot
Last synced: 13 days ago
JSON representation
Post messages on Slack as a bot
- Host: GitHub
- URL: https://github.com/balysv/back-slot
- Owner: balysv
- License: mit
- Created: 2019-01-12T14:47:06.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2019-01-12T15:10:58.000Z (about 6 years ago)
- Last Synced: 2024-11-14T18:34:11.240Z (2 months ago)
- Topics: fun, python-3, slack, slack-bot
- Language: Python
- Homepage:
- Size: 156 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Back-SLot
Liven up your slack channels by pretending to be the elephant emoji, Ronald McDonald or your coworker!
![Chat Image](./assets/chat.png)
## Prerequisites
- Acquire a Slack Api Token:
- Go to your company's [Slack apps](https://api.slack.com/apps) and create a new application
- Perform an [OAuth request](https://api.slack.com/tutorials/app-creation-and-oauth) using the client id & secret to get an api token
- Store the api token in `config.py`, do not share it!
- Install `python` and `pip` (any version)
- Run `pip install -r ./requirements.txt`
- Contemplate that this is to be used for harmless fun and not "impersonating" your CEO in #general and promising a company wide salary raise. Unless you are the CEO, then whatever ¯\\_(ツ)_/¯
- Yes, I deliberately made this setup more awkward than it should be because of the point above## Usage
Don't worry about your private Slack data, the script is stateless!
```
// Post using an emoji (including custom ones) as an avatar and an arbitrary name
python slack_post.py -c -m -e -n// Post with any image as an avatar and any name
python slack_post.py -c -m -i -n// Post as a public user from your company's Slack
python slack_post.py -c -m -u
```## License
MIT