A small Discord bot that screens new members and quarantines suspicious accounts until they verify.
Opens a modal to configure the screening:
- Quarantine channel — private verification threads are created here, and a message with an "Open verification thread" button is posted.
- Quarantine role — applied to members who fail screening. Configure this role to deny access to every channel except the quarantine channel.
- Log channel (optional) — where quarantine, verification, and kick events are logged, plus role/kick failures. Later events reply to the original quarantine log when possible.
- Screening options (all enabled by default):
- Recent accounts — accounts created in the last 15 days.
- Spammer flags — Discord's
Spammer/Quarantineduser flags orunusual_dm_activity_until. - Default avatars — no avatar, or one of Discord's default/mobile avatar hashes.
- No global name — user has only a username and no display name.
- Verification time is fixed at 15 minutes.
- A member joins and matches one or more enabled rules.
- The bot gives them the quarantine role and creates a private thread in the quarantine channel.
- The thread explains why they were quarantined and gives them a Verify me button.
- Pressing it opens a short "I'm not a robot" modal. Submitting it removes the quarantine role, marks the quarantine as passed, logs it, and deletes the thread.
- If the 6 hour timer expires first, the bot DMs them (best effort), kicks them, logs it, and deletes the thread.
Requires Bun.
bun install DISCORD_TOKEN=your_token_here bun run dev
Environment variables:
| Variable | Required | Description |
|---|---|---|
DISCORD_TOKEN |
yes | Bot token. |
DATABASE_URL |
no | SQLite database. Defaults to sqlite://db.sqlite. |
The Server Members privileged intent must be enabled in the Discord developer portal for GuildMemberAdd.