Skip to content

Instantly share code, notes, and snippets.

@joemiller
Created November 25, 2013 20:33
Show Gist options
  • Save joemiller/7648394 to your computer and use it in GitHub Desktop.
Save joemiller/7648394 to your computer and use it in GitHub Desktop.
a snapshot of our memes plugin for hubot
# Description:
# spit out random meme images
#
# Dependencies:
# None
#
# Configuration:
# None
#
# Commands:
# hubot victory - xpac chop meme
# make it rain - make that shit rain
# it's magic - magical
make_it_rain = [
"http://i.imgur.com/gpKRAqk.gif",
"http://i.imgur.com/OtIE9F8.gif"
]
fistbumps = [
"http://i.imgur.com/wnumFja.gif",
"http://i.imgur.com/N3q1bEs.gif",
"http://i.imgur.com/KwnJdug.gif",
"http://i.imgur.com/T1ZVNfl.gif",
"http://i.imgur.com/S0tQuT1.gif",
"http://i.imgur.com/oJGMOfD.gif"
]
gamechanger = [
"http://i.imgur.com/9eBziRw.jpg",
"http://i.imgur.com/w8mCkGV.jpg"
]
module.exports = (robot) ->
robot.hear /make it rain/i, (msg) ->
msg.send msg.random make_it_rain
robot.respond /victory/i, (msg) ->
msg.send "HELL YEAH BRO!! http://i.imgur.com/XIpinRF.gif"
robot.hear /it's magic/i, (msg) ->
msg.send "http://i.imgur.com/xMb9YDn.gif"
robot.hear /fist\s*bump/i, (msg) ->
msg.send msg.random fistbumps
robot.hear /game\s*change/i, (msg) ->
msg.send msg.random gamechanger
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment