Hubot-lunchpoll is a Hubot plugin that helps your team decide where to lunch. The hubot will search for restaurants nearby and show options to people in the chat vote.
You need to register at Foursquare and set your credentials on these environment variables:
FOURSQUARE_CLIENT_ID = xxx
FOURSQUARE_CLIENT_SECRET = xxx
To run it locally just set these variables on a .env file in the project root and load it with
a library like dotenv
.
Install the plugin:
npm install hubot-lunchpoll --save
And add it to your external-scripts.json
file:
[
...
"hubot-lunchpoll"
...
]
hubot lunchpoll start
hubot lunchpoll vote <number>
hubot lunchpoll partial
hubot lunchpoll finish