           else
             msg.send "Dropped a build in the queue for #{buildName}. Run `tc list builds #{buildName}` to check the status"
 
-
-
   robot.respond /tc list (projects|buildTypes|builds) ?(.*)?/i, (msg) ->
     type = msg.match[1]
 

              status = if build.status == "SUCCESS" then "OK!" else "__FAILED__"
              message = "#{status} :: #{baseMessage}"

            msg.send message
         projects = JSON.parse(body).project unless err
         callback err, msg, projects

  getBuildTypes = (msg, project, callback) ->
    projectSegment = ''
    if project?
      projectSegment = '/projects/name:' + encodeURIComponent project
    url = "http://#{hostname}/httpAuth/app/rest#{projectSegment}/buildTypes"
    console.log url
    msg.http(url)
      .headers(getAuthHeader())
      .get() (err, res, body) ->
