Created
July 11, 2013 20:11
-
-
Save mm53bar/5978792 to your computer and use it in GitHub Desktop.
Hubot script for What Would Johnn Four Say?
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
# Description: | |
# Hubot, tell me what Johnn Four would say about a topic. | |
# | |
# Dependencies: | |
# None | |
# | |
# Configuration: | |
# None | |
# | |
# Commands: | |
# "hubot what would Johnn say about stuff" will give you what Johnn would say about "stuff" | |
nuggets = [ | |
"The key to % is to understand the process taxonomy strategy effect." | |
"When it comes to %, you've got to like process taxonomy strategy. Like never before." | |
"You can do % when you process taxonomy strategy it." | |
"The process taxonomy strategy is mightier than the sword." | |
"% cuts process taxonomy strategy time in half." | |
"Maybe she's born with it, maybe it's process taxonomy strategy. Either way, it has not effect on %." | |
] | |
module.exports = (robot) -> | |
robot.hear /what would johnn say about (.*)$/i, (msg) -> | |
phrase = msg.match[1] | |
nugget = msg.random nuggets | |
msg.reply nugget.replace "%", phrase |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment