This repository has been archived by the owner. It is now read-only.
Permalink
Fetching contributors…
Cannot retrieve contributors at this time
19 lines (16 sloc) 383 Bytes
# Description:
# Get a random ROFL image - warning, this includes NSFW content!
#
# Dependencies:
# None
#
# Configuration:
# None
#
# Author:
# mcminton ripped from john-griffin
module.exports = (robot) ->
robot.hear /rofl/i, (msg) ->
msg.http("http://serene-beyond-2652.herokuapp.com/random")
.get() (err, res, body) ->
msg.send JSON.parse(body).rofl