An open API service indexing awesome lists of open source software.

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.

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