Skip to content
Slackbot scraping WTZ-Homepage (http://wtz-tagungszentrum.de) for current lunch menu
Branch: develop
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
menu
resources
templates
tests
.appveyor.yml
.coveragerc
.gitignore
.travis.yml
README.md
application.py
auth_token.py
bot.py
config.yml.sample
configuration.py
googleaction.py
models.py
pdf_textractor.py
requirements.txt
scraper.py
supported_apps.py

README.md

Build Status Build status codecov Maintainability Updates

kult-lunchbot

Overview

This projects aims to scrape the WTZ-Homepage for current lunch menu. Afterwards it shouts the scraped information (e.g the menu of today) to a slack channel

Development-Status

In development

Requirement

This project requires python 3.6 (it wont run with 3.5 or lower) and a postgres database, It uses following libraries:

To install requirements execute:

pip install -r requirements.txt

You also need to set following environment variables to make it work:

  • SLACK_CLIENT_ID
  • SLACK_CLIENT_SECRET
  • SLACK_VERIFICATION_TOKEN
  • (optional) if not provided in config.yml - Postgres Database-Config:
    • RDS_HOSTNAME
    • RDS_PORT
    • RDS_DB_NAME
    • RDS_USERNAME
    • RDS_PASSWORD

Bot-Commands

Bot listens for messages which have following pattern (where date is optional): keyword + (date) It is sufficient that the keyword (and the optional date) is somewhere in the message. Keywords and dates are in german, because the whole output is german as well.

Currently supported keywords are:

  • essen
  • kult
  • menü
  • mittag

Currently supported date's are:

  • week days
    • Montag
    • Dienstag
    • Mittwoch
    • Donnerstag
    • Freitag
  • relative days
    • Morgen
    • Übermorgen
    • Gestern
    • Vorgestern

Poor man every day scheduler

/remind me Was gibt es heute zu essen? at 11:00 every weekday

Or for a whole channel:

/remind #channel Was gibt es heute zu essen? at 11:00 every weekday

Add to your slack channel

Add to Slack

Bot in Action

Contribute

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request
You can’t perform that action at this time.