code: function getAllRooms(robot) {
    // With the IRC adapter, rooms are located
    // in robot.adapter.bot.opt.channels
    var adapter = robot.adapter;
    if (adapter && adapter.bot && adapter.bot.opt
        && adapter.bot.opt.channels) {
      return adapter.bot.opt.channels;
    }
    // Search in env vars
    for (var i in process.env) {
      if (/^HUBOT_.+_ROOMS/i.exec(i) !== null) {
        return process.env[i].split(',');
      }
    }
  }
docs: Ugly hack to get all hubot’s rooms, pending an official and cross-adapters API