Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

15 lines (13 sloc) 0.546 kb
# Show current Heroku status
#
# heroku status - Returns the current Heroku status for app operations and tools
module.exports = (robot) ->
robot.respond /heroku status/, (msg) ->
msg.http("https://status.heroku.com/status.json")
.get() (err, res, body) ->
try
json = JSON.parse(body)
msg.send "App Operations: #{json['App Operations']}\n" +
"Tools: #{json['Tools']}\n"
catch error
msg.send "Uh oh, I had trouble figuring out what the Heroku cloud is up to."
Jump to Line
Something went wrong with that request. Please try again.