https://github.com/ntidev/ladelosrolos_bot
This was a simple script/bot created to send random messages to a specific Slack channel of the company.
https://github.com/ntidev/ladelosrolos_bot
Last synced: over 1 year ago
JSON representation
This was a simple script/bot created to send random messages to a specific Slack channel of the company.
- Host: GitHub
- URL: https://github.com/ntidev/ladelosrolos_bot
- Owner: ntidev
- Created: 2022-07-11T20:02:32.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-07-15T15:18:14.000Z (almost 4 years ago)
- Last Synced: 2025-01-29T23:15:42.322Z (over 1 year ago)
- Language: Python
- Homepage:
- Size: 10.7 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# LA DE LOS ROLOS - Slack Bot
This was a simple script/bot created to send random messages to a specific Slack channel.
Initially questions were in a TXT file.
The idea is to:
1. Create a DB and update .env accordingly
2. Run `populate_DB.py` script to create and populate the questions table
3. Set a CRON JOB to run `bot.py`
The bot will run, look for a random row only if it hasn't been sent before. Send the question to slack and then mark it as sent.
# Run with docker
After running the `populate_DB.py` script, you can run the bot with the following command:
```bash
docker-compose up
```
Now you can see the bot running in the docker container.
## Potential Enhancements
- Add: Try Except
- Improve DB creation and population