     .then ->
       phab.getProject('*')
     .then (proj) ->
-      data.projects['*'].feeds ?= [ ]
-      if room in data.projects['*'].feeds
+      phab.data.projects['*'].feeds ?= [ ]
+      if room in phab.data.projects['*'].feeds
         msg.send "The catchall feed to '#{room}' already exist."
       else
-        data.projects['*'].feeds.push room
+        phab.data.projects['*'].feeds.push room
         msg.send "Ok, all feeds will be announced on '#{room}'."
     .catch (e) ->
       msg.send e.message or e


  robot.phab ?= new Phabricator robot, process.env
  phab = robot.phab
  data = robot.brain.data.phabricator

  #   hubot phad projects
  robot.respond /phad (?:projects|list) *$/, (msg) ->
    projects = Object.keys(data.projects).filter (i) ->
      i isnt '*'
    if projects.length > 0
      msg.send "Known Projects: #{projects.join(', ')}"

    phab.getPermission(msg.envelope.user, 'phadmin')
    .then ->
      phab.getProject(project)
    .then (payload) ->
      if payload.data.columns? and Object.keys(payload.data.columns).length > 0
        msg.send "Columns for #{project}: #{Object.keys(payload.data.columns).join(', ')}"
      else
        msg.send "The project #{project} has no columns."
    .catch (e) ->
