Skip to content

Slack bot providing daily menus for configured restaurants.

License

Notifications You must be signed in to change notification settings

igorkulman/lunchbuddy-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lunchbuddy

Lunchbuddy is a Slack bot providing daily lunch menus for configured restaurants.

Configuration

To make Lunchbuddy work, you need to edit the config.json file. It contains 3 configuration items.

token - bot token that you get when creating the bot in Slack
name - the name of the Slack bot
zomato_key - Zomato API key

No need to get and configure the Zomato API key when yo do not want to use this service.

Installation

Lunchbuddy is a regular Node.js app (although it does not use left-pad :), so just do npm install and npm start and the bot will start and connect to Slack (if configured properly).

Usage

You can invoke Lunchbuddy by mentioning him in any channel you invite it to or you can write it direct messages. It responds to help and shows you all the restuarants it is configured to fetch the menu for.

Asking Lunchbuddy for help

If you write to Lunchbuddy a name of a configured restaurant, it will respond with the daily lunch menu for this restaurant.

Showing daily menu

Getting started

Lunchbuddy contains a few restaurants and delivery services to get you started and show you how to use Zomato API, how to scrape web (Avion58, Motoburger) or how to parse JSON data (Ordr.cz).

Adding a new restaurant

The easiest way to add a new restaurant is to add a restaurant available in Zomato. You just need to add a new item to the zomato.json config

{
  "restaurants": [{
    "id": 16507044,
    "name": "GURMET",
    "keyword": "gurmet"
  }]
}

If you want to add a custom restaurant, take a look at the custom.js module to see samples of scraping web to get the daily lunch menu.

About

Slack bot providing daily menus for configured restaurants.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published