Fix Discord User-Agent header in health monitor

This commit is contained in:
Nolan Kovacs 2026-03-26 09:47:01 -04:00
parent 33c7e7d268
commit 81c5ec72d6
1 changed files with 1 additions and 1 deletions

View File

@ -98,7 +98,7 @@ def alert(message: str, tier: int = 2) -> None:
req = urllib.request.Request( req = urllib.request.Request(
DISCORD_WEBHOOK, DISCORD_WEBHOOK,
data=payload, data=payload,
headers={"Content-Type": "application/json"}, headers={"Content-Type": "application/json", "User-Agent": "DiscordBot (https://verimundsolutions.com, 1.0)"},
method="POST", method="POST",
) )
urllib.request.urlopen(req, timeout=10) urllib.request.urlopen(req, timeout=10)