handleMessage(message) {
    logger.info(message);
    if (message.type === 'message' && message.text) {
      this.game.command(message.user, message.event, message.text).then((responses) => {
        if (responses) {
          responses.forEach((response) => {
            this.bot.reply(message, response.message);
          });
        }
      }, (err) => {
        logger.error('Error responding to message', message, err);
      });
    }
  }
/**
   * Handle an incoming message
   * @param {object} message The incoming message from Slack
   * @return {Bot} returns itself
   */
Handle an incoming message
@param {object} message The incoming message from Slack
@return {Bot} returns itself
Handle an incoming message @param { object } message The incoming message from Slack @return { Bot } returns itself
handleMessage(message) {
    logger.info(message);
    if (message.type === 'message' && message.text) {
      this.game.command(message.user, message.event, message.text).then((responses) => {
        if (responses) {
          responses.forEach((response) => {
            this.bot.reply(message, response.message);
          });
        }
      }, (err) => {
        logger.error('Error responding to message', message, err);
      });
    }
  }
handleMessage ( message ) { logger . info ( message ) ; if ( message . type === 'message' && message . text ) { this . game . command ( message . user , message . event , message . text ) . then ( ( responses ) => { if ( responses ) { responses . forEach ( ( response ) => { this . bot . reply ( message , response . message ) ; } ) ; } } , ( err ) => { logger . error ( 'Error responding to message' , message , err ) ; } ) ; } }
Handle an incoming message
 @param {object} message The incoming message from Slack
 @return {Bot} returns itself
Handle an incoming message @param { object } message The incoming message from Slack @return { Bot } returns itself