{"size": 330, "ext": "js", "max_stars_repo_path": "alert.js", "max_stars_repo_name": "mickeyftm/evm-tx-decoder", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "alert.js", "max_issues_repo_name": "mickeyftm/evm-tx-decoder", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "alert.js", "max_forks_repo_name": "mickeyftm/evm-tx-decoder", "max_forks_repo_forks_event_min_datetime": "2021-07-13T18:42:47.000Z", "max_forks_repo_forks_event_max_datetime": "2021-07-13T18:42:47.000Z"}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": 1, "avg_line_length": 25.3846153846, "max_line_length": 56, "alphanum_fraction": 0.6454545455}
const handleAlert = (msg, alertConfig) => {
  console.log(msg);
  if (alertConfig.type === 'discord') {
    alertConfig.channel.send(msg);
  } else if (alertConfig.type === 'webhook') {
    // handle webhook
  } else if (alertConfig.onlocalcandidate === 'local') {
    console.log(msg);
  }
};

exports.handleAlert = handleAlert;
