Skip to content

Instantly share code, notes, and snippets.

@Lazyshot
Forked from jimmysawczuk/lunch.coffee
Created January 18, 2012 16:47
Show Gist options
  • Save Lazyshot/1633972 to your computer and use it in GitHub Desktop.
Save Lazyshot/1633972 to your computer and use it in GitHub Desktop.
lunch hubot script
//Why must i fork!!?!?!?!?!?!
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