Skip to content

Instantly share code, notes, and snippets.

@jamesmacfie
Created October 7, 2014 02:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jamesmacfie/06254acb1fab5c7d3243 to your computer and use it in GitHub Desktop.
Save jamesmacfie/06254acb1fab5c7d3243 to your computer and use it in GitHub Desktop.
Inappropriate quotes and stuff
# 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