From 73b6d381136c5cc348e03095b59cf09f866b8c8a Mon Sep 17 00:00:00 2001 From: Clarth Date: Fri, 13 Nov 2026 20:28:16 -0500 Subject: [PATCH] Send one Fluxer webhook message per alert Post each alert as its own webhook message instead of batching multiple embeds into a single message. --- notifiers/fluxer.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/notifiers/fluxer.py b/notifiers/fluxer.py index c7a5a0c..d22ca02 100644 --- a/notifiers/fluxer.py +++ b/notifiers/fluxer.py @@ -7,7 +7,6 @@ import requests from .base import Message, Notifier, NotifierError -EMBEDS_PER_MESSAGE = 10 COLOR_URGENT = 0xE74C3C COLOR_NORMAL = 0x3498DB USERNAME = "Admin Alerts" @@ -19,9 +18,8 @@ class FluxerWebhookNotifier(Notifier): self._timeout = timeout def send(self, messages: Sequence[Message]) -> None: - for start in range(0, len(messages), EMBEDS_PER_MESSAGE): - batch = messages[start : start + EMBEDS_PER_MESSAGE] - payload = {"username": USERNAME, "embeds": [_embed(m) for m in batch]} + for message in messages: + payload = {"username": USERNAME, "embeds": [_embed(message)]} try: resp = requests.post(self._url, json=payload, timeout=self._timeout) except requests.RequestException as exc: