 module.exports = (robot) ->
   apikey = process.env.HUBOT_UPTIMEROBOT_APIKEY
 
-  robot.respond /what is the uptime of the monitored sites?/i, (msg) ->
+  getMonitors = (msg) ->
     msg.http("http://api.uptimerobot.com/getMonitors")
       .query({ apiKey: apikey, logs: 0, format: "json", noJsonCallback: 1 })
       .get() (err, res, body) ->


        if response.stat is "fail"
          msg.send "#{response.message}"

#   HUBOT_UPTIMEROBOT_APIKEY
#
# Commands:
#   hubot uptimerobot - Show the status of the monitored sites
#   hubot what is the uptime of the monitored sites? - Show the status of the monitored sites
#   hubot uptimerobot add <url>[ as <friendlyname>] - Instructs uptime robot to monitor the <url>, optionally with a name
#   hubot start monitoring the http uptime of <url> - Instructs uptime robot to monitor the <url>
#
# Author:
