Created
October 7, 2014 02:52
-
-
Save jamesmacfie/06254acb1fab5c7d3243 to your computer and use it in GitHub Desktop.
Inappropriate quotes and stuff
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: | |
# Spits out quotes | |
# | |
# Dependencies: | |
# None | |
# | |
# Configuration: | |
# None | |
# | |
# Commands: | |
# hubot quote me | |
# hubot add quote I'm a quote | |
# | |
# Author: | |
# jamesmacfie | |
quotes = [ | |
"If you're afraid of the command line, don't be afraid of the command line", | |
"That should be a module", | |
"That makes me sad", | |
"YUI did that for years", | |
"http://33.media.tumblr.com/f84fc4eb27925b7ef0b023d754a37b9c/tumblr_mta3fgUJcJ1sh5mxqo1_250.gif", | |
"@slicknet is my hero", | |
"No, you’re looking for James Magness. He’s over there", | |
"People in QA have an incredible capacity for boredom" | |
] | |
module.exports = (robot) -> | |
robot.hear /.*(quote me).*/i, (msg) -> | |
msg.send msg.random quotes | |
robot.hear /.*walt(add quote) (.*).*/i, (msg) -> | |
quotes.push msg.match[2] | |
msg.send "Added quote '" + msg.match[2] + "'" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment