From b9763ebe4c4b61117b933cea6182b13586bfbc98 Mon Sep 17 00:00:00 2001 From: brockdarnold Date: Mon, 15 Jun 2026 00:27:01 +0000 Subject: [PATCH] publish eve_orehold_watcher.py --- eve_orehold_watcher.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/eve_orehold_watcher.py b/eve_orehold_watcher.py index 425fe8b..7a89cc2 100644 --- a/eve_orehold_watcher.py +++ b/eve_orehold_watcher.py @@ -195,7 +195,8 @@ def _discord(cp, title, message): try: req = urllib.request.Request( webhook, data=payload.encode("utf-8"), - headers={"Content-Type": "application/json"}, method="POST") + headers={"Content-Type": "application/json", "User-Agent": "eve-watcher"}, + method="POST") # Discord 403s a missing/blank User-Agent — must set one with urllib.request.urlopen(req, timeout=10) as r: r.read() print("[discord] sent")