/munch-bot

Is it worth going to the canteen today? SlackBot for Spring Media #general

Primary LanguageJavaScriptApache License 2.0Apache-2.0

The Munch-Bot

A tiny Lambda Function (http://docs.aws.amazon.com/lambda/latest/dg/welcome.html) that parses the html of the Paparazzi-Menu of the day (http://pace.webspeiseplan.de/) and posts it into our #general slack-channel. The execution of the Lambda is triggered via a daily Cloudwatch event at 11:30 a.m.

Deployment

To execute the deployment, AWS credentials with enough rights have to be available. The role "MinimalLambdaRole" just needs rights to write to Cloudwatch-Logs.

$ yarn install
$ gulp deploy

local developement

$ node lambdaLocal.js

next features:

  • regularily download and save all available menu-plans and then provide full-text-search via bot command, e.g. /munchbot pasta