 
   # hubot rundeck output <job-id>
   # sample url: 
-  robot.respond /rundeck output (.+)/i, (msg) ->
+  robot.respond /(?:rd|rundeck) output (.+)/i, (msg) ->
     jobid = msg.match[1]
 
     if robot.auth.hasRole(msg.envelope.user, rundeck.adminRole)

        msg.send "#{msg.envelope.user}: you do not have #{rundeck.adminRole} role."

  # hubot rundeck show <name>
  robot.respond /rundeck show ([\w -_]+)/i, (msg) ->
    name = msg.match[1]

    if robot.auth.hasRole(msg.envelope.user, rundeck.adminRole)


  # takes all but last word as the name of our job
  # hubot rundeck ad-hoc <name> <nodename>
  robot.respond /(?:rd|rundeck) (?:ad[ -]?hoc) ([\w -_]+) ([\w-]+)/i, (msg) ->
    name = msg.match[1]
    params = { argString: "-nodename #{msg.match[2].trim().toLowerCase()}" }
    query = "?#{querystring.stringify(params)}"
