            else
                msg.send "statusCode: #{res.statusCode}"
 
-ghe_largerepo = (msg, auth, url) ->
+ghe_largerepo = (msg, token, url) ->
     repo_min = 2000000
     msg.http("#{url}/search/repositories?q=size:>=#{repo_min}")
-    .header("Authorization", auth)
+    .header("Authorization", "token #{token}")
     .get() (err, res, body) ->
         if err
              msg.send "error"

    else
      msg.send "I don't know about #{info_term}"

ghe_license = (msg, auth,url) ->
    msg.http("#{url}/enterprise/settings/license")
    .header("Authorization", auth)
    .get() (err, res, body) ->
        if err
             msg.send "error"


module.exports = (robot) ->
  robot.respond /ghe (status|info)? ?(.*)$/i, (msg) ->
    url = process.env.HUBOT_GHE_URL + '/api/v3'
    token = process.env.HUBOT_GHE_TOKEN

    unless token
      msg.send "token isn't set."

    info_term = msg.match[2]
    if info_term is "license"
