Skip to content
This repository has been archived by the owner. It is now read-only.
develop
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

About

Slackbot scraping WTZ-Homepage (http://wtz-tagungszentrum.de) for current lunch menu

Resources

Releases

No releases published

Packages

No packages published