This repository has been archived by the owner. It is now read-only.
Permalink
Fetching contributors…
Cannot retrieve contributors at this time
23 lines (21 sloc) 386 Bytes
# Description:
# Display GitHub zen message from https://api.github.com/zen API
#
# Dependencies:
# None
#
# Configuration:
# None
#
# Commands:
# zen - Display GitHub zen message
#
# Author:
# anildigital
#
module.exports = (robot) ->
robot.hear /\bzen\b/i, (msg) ->
msg
.http("https://api.github.com/zen")
.get() (err, res, body) ->
msg.send body