 #   hubot show me builds - Show status of currently running builds
 #   hubot tc list projects - Show all available projects
 #   hubot tc list buildTypes - Show all available build types
+#   hubot tc list buildTypes of <project> - Show all available build types for the specified project
 #   hubot tc list builds <buildType> - Show the status of the last 5 builds 
+#   hubot tc list builds of <buildType> of <project> - Show the status of the last 5 builds of the specified build type of the specified project
 #   hubot tc build start <buildType> - Adds a build to the queue for the specified build type
+#   hubot tc build start <buildType> of <project> - Adds a build to the queue for the specified build type of the specified project
 #
 # Author:
 #   Micah Martin

              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) ->
