https://github.com/eightsq/mensabot2
slack bot for the daily menu using openmensa data
https://github.com/eightsq/mensabot2
bot slack slack-bot
Last synced: about 2 months ago
JSON representation
slack bot for the daily menu using openmensa data
- Host: GitHub
- URL: https://github.com/eightsq/mensabot2
- Owner: EightSQ
- Created: 2019-01-27T13:46:42.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-01-27T13:47:09.000Z (over 7 years ago)
- Last Synced: 2025-04-09T06:28:32.542Z (about 1 year ago)
- Topics: bot, slack, slack-bot
- Language: Python
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Mensabot2 (Slack)
This is a simple bot made to be run by a cronjob, using Slack Webhooks to send the meal offers of the Mensa.
## Requirements
For running the thing manually you will need
- Python (>=3.6);
- the *requests* package (`pip install -r requirements.txt`).
Alternatively you can use Docker.
## Usage
### Manually
1. Set the `SLACK_URL` and openmensa constants accordingly.
2. Run `python3 bot.py` with a cronjob at the time of your wish.
### Docker
1. Build with `docker build -t eightsq/mensabot .`.
2. Create container using `docker create ...`, specifying `SLACK_WEBHOOK`, `OPENMENSA_MENSAID` and `MENSA_URL` environment variables. You can also modify the label `cron.schedule` if you have a docker cron runner.
3. Start the container (`docker start`) via a cronjob (or using a docker cron runner).
## Roadmap
- Containerization
- Configuration over environment variables