Notification Eldorado
All checks were successful
Push image to registry / build-image (push) Successful in 4m2s

This commit is contained in:
2025-11-02 19:17:05 +01:00
parent c36d83e8b6
commit ea22c19d2b
3 changed files with 85 additions and 5 deletions

View File

@@ -107,18 +107,16 @@ class EldoradoRobuxPriceSentryJob extends BrowserJob implements ShouldBeUniqueUn
]));
if ($lowestPrice <= $threshold) {
$message = "Le prix des Robux sur Eldorado est actuellement de **" . number_format($lowestPrice, 5, ",", " ") . " €**/Robux, ce qui est inférieur ou égal au seuil de **" . number_format($threshold, 5, ",", " ") . " €**.\n\n[Voir l'offre sur Eldorado]( " . self::LINK . " )";
$options = [];
if ($this->jobInfos->get("eldorado_robux_price_discord_webhook") !== null) { // Custom discord webhook
$options["discord_webhook_url"] = $this->jobInfos->get("eldorado_robux_price_discord_webhook");
}
AllNotification::send(
new SimpleNotification(
new EldoradoRobuxPriceNotification(
$this->jobId,
"Alerte Robux Eldorado 🤑",
$message
$lowestPrice,
self::LINK
),
$options
);