Allow sending helcase battle to custom discord webhook
All checks were successful
Push image to registry / build-image (push) Successful in 4m24s

This commit is contained in:
2025-03-20 19:28:40 +01:00
parent fadb4d2748
commit c26a09701a
4 changed files with 18 additions and 7 deletions

View File

@ -152,7 +152,14 @@ class HellcaseBattlesJob extends HellcaseJob implements ShouldBeUniqueUntilProce
AllNotification::send(new JobDebugNotification($this->jobId, "Failed to screenshot battle"));
}
$this->battlesSent[$battle->getUrl()] = $battle->value;
AllNotification::send(new HellcaseBattlesNofication($this->jobId, $battle));
$options = [];
if ($this->jobInfos->get("hellcase_battles_discord_webhook_url") !== null) { // Custom discord webhook
$options["discord_webhook_url"] = $this->jobInfos->get("hellcase_battles_discord_webhook_url");
}
AllNotification::send(new HellcaseBattlesNofication($this->jobId, $battle), $options);
}
private function createNewBattles() {