Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
22 lines (20 sloc) 447 Bytes
# Description:
# Return random animated GIFs from giftv
#
# Dependencies:
# None
#
# Configuration:
# None
#
# Commands:
# hubot giftv me - Returns a random animated GIF
#
# Author:
# brettbuddin
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.'
You can’t perform that action at this time.