-
-
Save Lazyshot/1633972 to your computer and use it in GitHub Desktop.
lunch hubot script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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