src/bot.js
/*
   * This is like the main method.
   * Hubot invokes this method, when we use this adapter, to setup
   * the bridge between Hubot and Hangouts Chat
   */
This is like the main method.
Hubot invokes this method, when we use this adapter, to setup
the bridge between Hubot and Hangouts Chat
This is like the main method . Hubot invokes this method when we use this adapter to setup the bridge between Hubot and Hangouts Chat
run() {
    if (this.isPubSub) {
      this.startPubSubClient();
    } else {
      this.startHttpServer();
    }
    this.robot.logger.info('Hangouts Chat adapter initialized successfully');
    this.emit('connected')
  }
run ( ) { if ( this . isPubSub ) { this . startPubSubClient ( ) ; } else { this . startHttpServer ( ) ; } this . robot . logger . info ( 'Hangouts Chat adapter initialized successfully' ) ; this . emit ( 'connected' ) }
This is like the main method.
This is like the main method .
// Connect to PubSub subscription // Begin listening at HTTP endpoint // To make Hubot load scripts