Fix Discord User-Agent header in health monitor
This commit is contained in:
parent
33c7e7d268
commit
81c5ec72d6
|
|
@ -98,7 +98,7 @@ def alert(message: str, tier: int = 2) -> None:
|
|||
req = urllib.request.Request(
|
||||
DISCORD_WEBHOOK,
|
||||
data=payload,
|
||||
headers={"Content-Type": "application/json"},
|
||||
headers={"Content-Type": "application/json", "User-Agent": "DiscordBot (https://verimundsolutions.com, 1.0)"},
|
||||
method="POST",
|
||||
)
|
||||
urllib.request.urlopen(req, timeout=10)
|
||||
|
|
|
|||
Loading…
Reference in New Issue