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(
|
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)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue