Skip to content

Instantly share code, notes, and snippets.

@jimmysawczuk
Created January 18, 2012 16:37
Show Gist options
  • Save jimmysawczuk/1633920 to your computer and use it in GitHub Desktop.
Save jimmysawczuk/1633920 to your computer and use it in GitHub Desktop.
lunch hubot script
destinations = [
"Thirsty Fellow"
"Mellow Mushroom"
"Pawley's"
"Mucho Margarita"
"Harpers"
"Mr. Friendlys"
"M Vista"
"Wild Wing"
"Chipotle"
"Zoe's"
"Delaney's"
"Yesterday's"
"Flying Saucer"
"Ale House"
"Cookout"
"Cantina 76"
"Henry's"
"Five Guys"
"Momo's"
"Za's"
"Tokyo Grill"
];
Array::shuffle = -> @sort -> 0.5 - Math.random()
module.exports = (robot) ->
robot.hear /lunch ideas/i, (msg) ->
destinations.shuffle() for i in [1..100]
d = destinations[0..2]
msg.send d.join "\n"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment