+# Description:
+#   Control your wanchour installation
+#
+# Dependencies:
+#   None
+#
+# Configuration:
+#   HUBOT_WANCHOUR_URL
+#
+# Commands:
+#   hubot wanchour repositories - find all your repositories
+#   hubot wanchour distributions - find all your distributions
+#   hubot wanchour launch "<command_name>" for "<repository_name" - Launch a command on a repository
+#   hubot wanchour launch "<command_name>" for "<repository_name" with distribution "<distribution_name>" - Launch a command on a repository with a distribution
+#   hubot wanchour job "<job_id>" - get status and logs for a job
+#
+# Author:
+#   youknowriad
+
 module.exports = (robot) ->
-
   robot.respond /wanchour repositor(ies|y)/i, (msg) ->
     try
       url = process.env.HUBOT_WANCHOUR_URL

        .get() (err, res, body) -> 
          try
            result = JSON.parse(body)
            msg.send 'Job Status : "' + result.status
            msg.send 'Logs:'

            for log in result.logs
              msg.send ' - ' + log.priority + ' : ' + log.message   
          catch e
            msg.send 'error : ' + e
    catch e
      msg.send 'error : ' + e
    catch e
      msg.send 'error : ' + e

  robot.respond /wanchour job "(.*)?"/i, (msg) ->
    try
      url = process.env.HUBOT_WANCHOUR_URL
