{"size": 1151, "ext": "js", "max_stars_repo_path": "app/actionHandlers/generic/genericActionHandler.js", "max_stars_repo_name": "DNIStream/dni.bot", "max_stars_repo_stars_event_min_datetime": "2020-09-13T11:27:10.000Z", "max_stars_repo_stars_event_max_datetime": "2020-09-13T11:27:10.000Z", "max_issues_repo_path": "app/actionHandlers/generic/genericActionHandler.js", "max_issues_repo_name": "DNIStream/corporallancot", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "app/actionHandlers/generic/genericActionHandler.js", "max_forks_repo_name": "DNIStream/corporallancot", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 33.8529411765, "max_line_length": 115, "alphanum_fraction": 0.7106863597}
'use strict';

const ActionHandlerBase = require("@actionHandlers/actionHandlerBase");

module.exports = class GenericActionHandler extends ActionHandlerBase {
  constructor({ logger }) {
    super(logger, "generic");
  }

  async handle(actionHandlerMessage) {
    if (!actionHandlerMessage) {
      return;
    }

    // This action handler is called whenever a bang command is not found for a message received by any server.

    // This is intended be used to log all chat messages from all
    // listeners.
    // This feature should be enabled or disabled via config.

    // Do not uncomment the below line unless you want every single chat message from every server to be logged.

    // This could potentially be used to redirect chat from all
    // servers to a central monitoring destination i.e. if
    // a streamer pushes their stream to mixer, twitch and
    // YouTube, but monitor chat in one place.

    // this.logger.log(`${this.logPrefix}Generic action handler received message: '${actionHandlerMessage.data}'`);

    // DO NOT RETURN ANYTHING FROM THIS HANDLER!
    // If you do, the bot will go into recursive meltdown
  }
};
