Add the slopbot live check and record the invite blocker
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user