Skip to content

Instantly share code, notes, and snippets.

@tomkersten
Created February 18, 2013 16:58
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 tomkersten/4978810 to your computer and use it in GitHub Desktop.
Save tomkersten/4978810 to your computer and use it in GitHub Desktop.
Hubot script for "agreed", "I agree", or "+1" in room
# Description:
# "I agree" gifs
#
# Dependencies:
# None
#
# Configuration:
# None
#
# Commands:
# i agree - Display an agreement gif
# agreed - Display an agreement gif
# +1 - Display an agreement gif
#
# Author:
# tomkersten
agree_gifs = [
"http://25.media.tumblr.com/tumblr_m6hau6hJKJ1rwcc6bo1_400.gif",
"http://24.media.tumblr.com/tumblr_m37l2kbHzI1qihztbo1_400.gif",
"http://media.tumblr.com/tumblr_ltli98n9YE1qzy4n9.gif",
"http://24.media.tumblr.com/tumblr_m09plvItq51rqfhi2o1_400.gif",
"http://25.media.tumblr.com/tumblr_lyvq47DWd81rn95k2o1_500.gif",
"http://www.reactiongifs.com/wp-content/uploads/2013/01/agree-nod.gif",
"http://www.reactiongifs.com/wp-content/uploads/2012/09/agrees-your-argument.gif",
"http://www.reactiongifs.com/wp-content/uploads/2012/12/ThinkingGradualAwesome.gif",
"http://www.reactiongifs.com/wp-content/gallery/yes/illK6U.gif",
"http://www.reactiongifs.com/wp-content/gallery/yes/yesjacknicholson.gif",
"http://www.reactiongifs.com/wp-content/gallery/yes/excited_kid.gif",
"http://www.reactiongifs.com/wp-content/gallery/yes/troll_approval.gif",
"http://media.tumblr.com/03488d2d9d2b4e3d5812431037d0bcc6/tumblr_inline_mg94dvNDjV1r087lu.gif",
"http://media.tumblr.com/0a7368638a0ed1e989f8cd7d5e77725f/tumblr_inline_mhd42tahAR1qz4rgp.gif",
"http://media.tumblr.com/06717458b89896ea5ae70b6522241897/tumblr_inline_mhh29m6s691qz4rgp.gif",
"http://24.media.tumblr.com/tumblr_mbgd7az1911riqizno1_500.gif",
"http://24.media.tumblr.com/tumblr_m76u8ihbgP1rqfhi2o1_250.gif"
]
module.exports = (robot) ->
robot.hear /(\+1|i agree)/i, (msg) ->
msg.send msg.random agree_gifs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment