 cheerio = require('cheerio')
 
 module.exports = (robot) ->
+
+  robot.brain.on 'loaded', ->
+    puppetmasterAliases = robot.brain.data.puppermaster_aliases or {}
 
   status = (msg, host) ->
     msg.http("#{host}/radiator")

      return

    status msg, msg.match[1], (text) ->
      msg.send(text)
#
# Commands:
#   hubot puppetmaster status [server] - please note that this needs to include any port numbers as appropriate
#   hubot puppetmaster show aliases - shows the aliases for the list of pupeptmasters
#   hubot puppetmaster set alias [alias name] [url] - sets the alias for a given url
#   hubot puppetmaster clear alias [alias name] [url] - please note that this needs to include any port numbers as appropriate
#
# Author:
#   pstack
