src/message-processor.js
/**
   * Processes message as general message or as a command
   * @param {Object} msg message object received from API
   */
Processes message as general message or as a command
@param {Object} msg message object received from API
Processes message as general message or as a command @param { Object } msg message object received from API
processMessage (msg) {
    const message = this.getMessage(msg);
    const isCommand = message.isCommand();
    if (isCommand) {
      this.processCommand(msg);
    } else {
      this.processGeneralMessage(message);
    }
  }
processMessage ( msg ) { const message = this . getMessage ( msg ) ; const isCommand = message . isCommand ( ) ; if ( isCommand ) { this . processCommand ( msg ) ; } else { this . processGeneralMessage ( message ) ; } }
Processes message as general message or as a command
 @param {Object} msg message object received from API
Processes message as general message or as a command @param { Object } msg message object received from API
// TODO: replace msg with message but be cautious with nested methods