Created
December 16, 2014 11:32
-
-
Save apas/5c294a767a5f957d21a3 to your computer and use it in GitHub Desktop.
hubot food delivery script
This file contains hidden or 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
# Description: | |
# Slackbot knows what you secretly crave for when you're not sure. | |
# | |
# Config: | |
# none | |
# | |
# Commands: | |
# $ what should i order? - displays random suggestion | |
# | |
# Author: | |
# @apas | |
food = [ | |
"chinese", | |
"pho", | |
"mickey-d's", | |
"burger", | |
"pizza", | |
"sushi", | |
"indian", | |
"burrito", | |
"italian" | |
] | |
module.exports = (robot) -> | |
robot.hear /what should i order?/i, (msg) -> | |
msg.send msg.random food |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment