-
-
Save chriseckhardt/7651574 to your computer and use it in GitHub Desktop.
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: | |
# 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