docs: update for v1.2.1 performance changes
- USAGE.md: alert output format, background seeding, per-backend errors, concurrent fetches - CHEATSHEET.md: updated alert section - DEBUG.md: added profiling section (cProfile + tracemalloc) - ROADMAP.md: added v1.2.1 milestone Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -721,19 +721,24 @@ Platforms searched:
|
||||
Polling and announcements:
|
||||
|
||||
- Alerts are polled every 5 minutes by default
|
||||
- On `add`, existing results are recorded without announcing (prevents flood)
|
||||
- New results announced as `[name/<tag>/<id>] Title -- URL` where tag is one of:
|
||||
`yt`, `tw`, `sx`, `rd`, `ft`, `dg`, `gn`, `kk`, `dm`, `pt`, `bs`, `ly`, `od`, `ia`,
|
||||
`hn`, `gh`, `wp`, `se`, `gl`, `nm`, `pp`, `dh`, `ax`, `lb`, `dv`, `md`, `hf`
|
||||
and `<id>` is a short deterministic ID for use with `!alert info`
|
||||
- Titles are truncated to 80 characters
|
||||
- On `add`, the bot replies immediately; existing results are seeded in the
|
||||
background to avoid flooding
|
||||
- New results announced as two lines:
|
||||
- ACTION: `* derp [name/<tag>/<id>] date - URL`
|
||||
- PRIVMSG: full uncropped title/content
|
||||
- Tags: `yt`, `tw`, `sx`, `rd`, `ft`, `dg`, `gn`, `kk`, `dm`, `pt`, `bs`, `ly`,
|
||||
`od`, `ia`, `hn`, `gh`, `wp`, `se`, `gl`, `nm`, `pp`, `dh`, `ax`, `lb`, `dv`,
|
||||
`md`, `hf` -- `<id>` is a short deterministic ID for use with `!alert info`
|
||||
- Each platform maintains its own seen list (capped at 200 per platform)
|
||||
- 5 consecutive errors doubles the poll interval (max 1 hour)
|
||||
- Per-backend error tracking with exponential backoff (5+ errors skips
|
||||
that backend with increasing cooldown; other backends unaffected)
|
||||
- Multi-instance backends (PeerTube, Mastodon, Lemmy, SearXNG) fetch
|
||||
concurrently for faster polling
|
||||
- Subscriptions persist across bot restarts via `bot.state`
|
||||
- Matched results are stored in `data/alert_history.db` (SQLite)
|
||||
- `list` shows error status indicators next to each alert
|
||||
- `list` shows per-backend error counts next to each alert
|
||||
- `check` forces an immediate poll across all platforms
|
||||
- `history` queries stored results, most recent first
|
||||
- `history` queries stored results (titles truncated), most recent first
|
||||
|
||||
### `!jwt` -- JWT Decoder
|
||||
|
||||
|
||||
Reference in New Issue
Block a user