 # Author:
 #   kevwil, davidsulpy
 
-host = process.env.HUBOT_RABBITMQ_HOST
-scheme = process.env.HUBOT_RABBITMQ_SCHEME ?= 'http'
+url = process.env.HUBOT_RABBITMQ_HOST
 user = process.env.HUBOT_RABBITMQ_USER ?= 'guest'
 pwd = process.env.HUBOT_RABBITMQ_PWD ?= 'guest'
 virt = process.env.HUBOT_RABBITMQ_VIRT_HOST ?= '%2F'

  robot.respond /rabbit nodes/i, (msg) ->
    results = []
    msg
      .http("#{scheme}://#{host}/api/nodes")
      .headers(Authorization: auth, Accept: 'application/json')
      .get() (err, res, body) ->
        if err


# get_queues = (msg) ->
#   msg
#     .http("#{url}/api/queues")
#     .query(sort_reverse: 'messages')
#     .headers(Authorization: auth, Accept: 'application/json')
#     .get() (err, res, body) ->
