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")