Skip to content

A Slack bot for fetching lunch menu announcements from selected Facebook pages.

License

Notifications You must be signed in to change notification settings

sjednac/slack-lunch-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Slack Lunch Bot Build Status Codacy Badge

A Slack bot for fetching lunch menu announcements from selected Facebook pages.

Installation

Use the Universal plugin to build a deployable artifact (check the link for other archive formats):

sbt universal:package-bin

Copy it to a destination of your choice or unzip it directly as such:

unzip -d /opt/ target/universal/slack-lunch-bot-0.1-SNAPSHOT.zip

Run the bot by executing the provided script:

/opt/slack-lunch-bot-0.1-SNAPSHOT/bin/slack-lunch-bot

Configuration

You can use the provided configuration file as a template:

cp conf/application.conf.example conf/application.conf

Slack integration

Setup a bot user account as described here. Make sure, that the bot is a member of the target channel (e.g. #lunch or whatever you prefer).

Set the api token and the channel name in the slack section of the config.

Facebook integration

Setup a Facebook application here. It will be used for querying the Facebook pages of your choice.

Set the app id and the app secret in the facebook section of the config. Put relevant page IDs in the same section (for https://www.facebook.com/SomeRestaurant the ID is simply SomeRestaurant).

Querying policy

Check the akka.quartz section for a relevant cron expression. Once triggered, the bot will check each page for the latest Facebook post, that was made on that day (hopefully, it should be a menu), and publish it to Slack.

About

A Slack bot for fetching lunch menu announcements from selected Facebook pages.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages