Skip to content
Newer
Older
100644 19 lines (16 sloc) 383 Bytes
d376e9f @minton Add rofl script.
minton authored
1 # Description:
2 # Get a random ROFL image - warning, this includes NSFW content!
3 #
4 # Dependencies:
5 # None
6 #
7 # Configuration:
8 # None
9 #
10 # Author:
11 # mcminton ripped from john-griffin
12
13 module.exports = (robot) ->
14
15 robot.hear /rofl/i, (msg) ->
16 msg.http("http://serene-beyond-2652.herokuapp.com/random")
17 .get() (err, res, body) ->
18 msg.send JSON.parse(body).rofl
Something went wrong with that request. Please try again.