Lunchbuddy is a Slack bot providing daily lunch menus for configured restaurants.
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.
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).
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.
If you write to Lunchbuddy a name of a configured restaurant, it will respond with the daily lunch menu for this restaurant.
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).
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.