Skip to content

Latest commit

 

History

History
59 lines (46 loc) · 1.31 KB

README.md

File metadata and controls

59 lines (46 loc) · 1.31 KB

Hubot-lunchpoll

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.

Configuration

Foursquare

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

Install the plugin:

npm install hubot-lunchpoll --save

And add it to your external-scripts.json file:

[
  ...
  "hubot-lunchpoll"
  ...
]

Usage

Starting the poll

hubot lunchpoll start 

Voting

hubot lunchpoll vote <number>

Showing the partial results

hubot lunchpoll partial

Finishing the poll and announcing the winner

hubot lunchpoll finish