Skip to content

Instantly share code, notes, and snippets.

@bronzehedwick
Forked from jpadilla/github-status.coffee
Last active August 29, 2015 14:17
Show Gist options
  • Save bronzehedwick/68969fd36341e5631ddb to your computer and use it in GitHub Desktop.
Save bronzehedwick/68969fd36341e5631ddb to your computer and use it in GitHub Desktop.
# Description
# A command to check Github's web status
#
# Dependencies:
# None
#
# Configuration:
# None
#
# Commands:
# hubot github status - Returns Github's status
#
# Notes:
#
#
# Author:
# bronzehedwick
module.exports = (robot) ->
robot.respond /(github)( status)?/i, (msg) ->
msg.http('https://status.github.com/api/last-message.json')
.get() (err, res, body) ->
data = JSON.parse(body)
msg.send data.body
msg.send data.created_on
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment