Add the slopbot live check and record the invite blocker

This commit is contained in:
Fisto
2026-09-16 09:37:02 +02:00
parent af07facbb5
commit c81ae0d0fe
5 changed files with 95 additions and 1 deletions
+12
View File
@@ -60,6 +60,18 @@ channels.
- The Bot tab shows connection state, the guilds slopbot is in, the active scrape, and the queue.
It also renders the invite URL from the client ID.
## Live check
```sh
cd poc
VESKSLOP_SLOPBOT_ENABLED=1 VESKSLOP_SLOPBOT_STATE=/path/to/slopbot.json \
pnpm test:slopbot:live <channelId> [guildId]
```
The check logs in, prints the bot user and guild count, then fetches one history page and maps it.
The token is read from the state file or the environment and is never printed. The bot must be
invited to the guild first (View Channels + Read Message History).
## Rate limits
discord.js handles per-route buckets and retries `429` and `5xx` internally. The scrape engine adds