Skip to content

Instantly share code, notes, and snippets.

@martinisoft
Created April 19, 2014 01:16
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 martinisoft/11070596 to your computer and use it in GitHub Desktop.
Save martinisoft/11070596 to your computer and use it in GitHub Desktop.
Squee! Script for Hubot
# Description:
# Need a little cuteness in your life? YES YOU DO!
#
# Dependencies:
# None
#
# Configuration:
# None
#
# Commands:
# hubot squee - Bring a little cuteness in your life
module.exports = (robot) ->
robot.respond /squee( me)?!?/i, (msg) ->
msg.http("http://imgur.com/r/aww.json")
.get() (err, res, body) ->
content = JSON.parse(body)
squee = msg.random content.data
msg.send "http://imgur.com/#{squee.hash}#{squee.ext}"
@martinisoft
Copy link
Author

A quick demo:

Squee

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment