2
0
Fork 0
forked from zynk/zynk

Fix !weather returning HTML instead of weather data

wttr.in now serves a full HTML page when it detects a browser-like
User-Agent string. Replaced the fake Firefox UA in run_curl with
"zynk/VERSION" so weather, forecast, and stock requests all return
the expected format again.
This commit is contained in:
Johannes Findeisen 2026-07-19 16:47:49 +02:00
commit 61a6a95801
2 changed files with 7 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2026.07.19 – Fix !weather returning HTML.
- Fixed `!weather` command returning `<!DOCTYPE html>` instead of weather data: wttr.in now returns HTML when it detects a browser User-Agent, so replaced the fake Firefox UA string with `zynk/VERSION`.
- Version bumped to 0.34.1.
2026.07.19 – Uptime command, remove !hello.
- Added `!uptime` command: displays bot uptime in a human-readable format (days/hours/minutes/seconds).