 #   "moment": ">=1.6.0"
 #
 # Configuration:
-#   HUBOT_SENSU_API_UR - URL for the sensu api service.  http://sensu.yourdomain.com:4567
+#   HUBOT_SENSU_API_URL - URL for the sensu api service.  http://sensu.yourdomain.com:4567
 #   HUBOT_SENSU_DOMAIN - Domain to force on all clients.  Not used if blank/unset
+#   HUBOT_SENSU_API_USERNAME - Username for the sensu api basic auth. Not used if blank/unset
+#   HUBOT_SENSU_API_PASSWORD - Password for the sensu api basic auth. Not used if blank/unset
 #
 # Commands:
 #   hubot sensu info - show sensu api info

#######################
  robot.respond /(?:sensu)? stashes/i, (msg) ->
    validateVars
    robot.http(config.sensu_api + '/stashes')
      .get() (err, res, body) ->
        if err
          msg.send "Sensu says: #{err}"

    validateVars
    client = addClientDomain(msg.match[1])


     credential = createCredential()
    req = robot.http(config.sensu_api + '/clients/' + client)
    if credential
      req = req.headers(Authorization: credential)
    req
      .get() (err, res, body) ->
        if err
          msg.send "Sensu says: #{err}"
