code: function start() {
      return __awaiter(this, void 0, void 0, function* () {
          yield __1.driver.connect();
          yield __1.driver.login({ username: config_1.botUser.username, password: config_1.botUser.password });
          yield __1.driver.subscribeToMessages();
          yield __1.driver.respondToMessages((err, msg, msgOpts) => {
              if (err)
                  throw err;
              console.log('[respond]', JSON.stringify(msg), JSON.stringify(msgOpts));
              demo(msg).catch((e) => console.error(e));
          }, {
              rooms: ['general'],
              allPublic: false,
              dm: true,
              edited: true,
              livechat: false
          });
      });
  }
docs: Start subscription to log message stream (used for e2e test and demo)