Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

10 lines (9 sloc) 0.339 kb
# Return random animated GIFs from giftv.
#
# giftv me - Returns a random animated GIF.
module.exports = (robot) ->
robot.respond /giftv( me)?$/i, (msg) ->
msg
.http('http://www.gif.tv/gifs/get.php')
.get() (err, res, body) ->
msg.send 'http://www.gif.tv/gifs/' + body + '.gif' || 'Could not compute.'
Jump to Line
Something went wrong with that request. Please try again.