This repo delivers a robust Discord Invite Only Bot that turns your server into a gated community with smart verification, temporary invites, and anti-raid shielding. It removes manual moderation from onboarding so you scale safely without sacrificing exclusivity or user experience. The result: streamlined growth, cleaner membership, and fewer headaches for staff.
Created by Appilot, built to showcase our approach to Automation!
If you are looking for custom Discord Invite Only Bot, you've just found your team — Let’s Chat.👆👆
What it does: Automates invite-only access with verification steps, temporary links, and role assignment while detecting raids and spam joins.
What it automates: The repetitive tasks of generating/verifying invites, screening users, enforcing rules, and logging audits.
Benefit: Faster onboarding, tighter security, and consistent enforcement at scale.
- Granular invite policies: single-use, TTL-based, role-scoped, and source-tracked.
- Multi-stage verification (captcha, questionnaire, proof-of-ownership) with fallback flows.
- Real-time anti-raid detection with join velocity thresholds and progressive rate-limits.
- Webhook-driven audit trails for actions, exceptions, and moderator overrides.
- Optional Android-client mirroring for secondary verification via Appilot device farms.
- Real Devices and Emulators: Optionally pair the bot with Android real devices or emulators (Bluestacks/Nox) to mirror client-side flows (e.g., DM verifications) where API is limited—ideal for advanced anti-detection or partner apps.
- No-ADB Wireless Automation: Leverage Appilot’s wireless control channel to drive Android verification tasks without tethering, reducing cable clutter and enabling rack-scale device farms.
- Mimicking Human Behavior: Randomized pauses, gesture-like timings, and staggered actions across devices minimize patterns and lower detection risk for client-side verification routines.
- Multiple Accounts Support: Run multiple bot instances or paired verification accounts with isolated configs, proxies, and per-guild rate strategies.
- Multi-Device Integration: Scale verification checks across parallel Android devices and emulators; auto-queue tasks, retry on transient errors, and backoff on rate spikes.
- Exponential Growth for Your Account: Safe gates let you unlock promo pushes; qualified members flow through faster while low-quality traffic gets filtered, driving healthier long-term growth.
- Premium Support: Priority troubleshooting, tailored policies, and guided deployments—from single guilds to multi-community networks.
- Role-Based Gating & Mapping: Map invite sources to roles, enforce prerequisites, and auto-assign on success.
- Adaptive Anti-Raid Shield: Detect burst joins, freeze new links, enable stricter gates, and notify mods with one-click overrides.
- Comprehensive Audit & Logs: Every action (invite create/use/expire, verification success/fail, kicks/bans) is recorded and available via dashboards or webhooks.
| Feature | Description |
|---|---|
| Invite Whitelisting Rules Engine | Define who can create invites, limit uses, set TTLs, and tag sources for analytics and downstream role mapping. |
| Code-Based Entry Pass | Generate short-lived codes (single-use) linked to campaigns or staff; verify via DM or channel forms. |
| Temporary Invite Links with TTL | Auto-expiring links prevent sharing/leaks; server stays exclusive even during high-traffic campaigns. |
| Anti-Raid & Rate-Limit Shield | Monitor join velocity, origin patterns, and fingerprint signals; progressively clamp down and alert moderators. |
| Captcha & Proof-of-Work Gate | Human verification via captcha or lightweight POW; fallback to questionnaire or staff review queue. |
| Audit & Webhook Reporting | Push structured JSON events to mod channels, Slack, or HTTP endpoints for SIEM/BI pipelines. |
- Input or Trigger — From the Appilot dashboard, admins configure policies (invite TTL, uses, role maps, verification type) and start the automation for selected guilds.
- Core Logic — The bot orchestrates Discord API workflows and, when required, drives Android devices via UI Automator/Appium/Accessibility to complete client-side verification (DM checks, forms, or OTP).
- Output or Action — Qualified users receive roles and welcome flows; flagged attempts are rate-limited, queued for review, or banned based on policy.
- Other functionalities— Retries, exponential backoff, structured logging, alerting, and parallel processing are tunable per guild; dashboards expose health, queues, and success rates.
- Language: Kotlin, Java, JavaScript, Python
- Frameworks: Appium, UI Automator, Espresso, Robot Framework, Cucumber
- Tools: Appilot, Android Debug Bridge (ADB), Appium Inspector, Bluestacks, Nox Player, Scrcpy, Firebase Test Lab, MonkeyRunner, Accessibility
- Infrastructure: Dockerized device farms, Cloud-based emulators, Proxy networks, Parallel Device Execution, Task Queues, Real device farm.
discord-invite-only-bot/
│
├── src/
│ ├── bot/
│ │ ├── main.ts
│ │ ├── commands/
│ │ │ ├── invite.ts
│ │ │ ├── verify.ts
│ │ │ └── admin.ts
│ │ ├── services/
│ │ │ ├── gating.service.ts
│ │ │ ├── raidshield.service.ts
│ │ │ └── audit.service.ts
│ │ └── utils/
│ │ ├── rateLimiter.ts
│ │ ├── scheduler.ts
│ │ └── logger.ts
│ ├── mobile/
│ │ ├── appilot/
│ │ │ ├── device_queue.py
│ │ │ ├── verifier_flow.py
│ │ │ └── accessibility_actions.py
│ │ └── configs/
│ │ ├── device_pool.yaml
│ │ └── gestures.json
│ └── web/
│ ├── dashboard/
│ │ ├── pages/
│ │ ├── components/
│ │ └── api/
│ └── public/
│
├── config/
│ ├── guild_policies.yaml
│ ├── credentials.env
│ └── invites.rules.yaml
│
├── logs/
│ ├── bot.log
│ └── device.log
│
├── output/
│ ├── audits.jsonl
│ └── reports/
│ └── weekly.csv
│
├── docker/
│ ├── Dockerfile.bot
│ ├── Dockerfile.devicefarm
│ └── docker-compose.yaml
│
├── tests/
│ ├── e2e/
│ └── unit/
│
├── requirements.txt
├── package.json
└── README.md
- Community owners use it to admit qualified members only, so they keep exclusivity without manual screening.
- Gaming clans & eSports servers use it to stop raid floods, so moderators can focus on events instead of cleanup.
- Creators & course communities use it to gate by purchase codes, so only paying users access premium channels.
- Brands running promos use temporary, tracked invites, so they can attribute campaigns and prevent link leakage.
How do I configure this automation for multiple accounts?
Provide multiple bot tokens or paired verifier accounts in credentials.env, then map them to guilds in guild_policies.yaml. The scheduler shards queues per account and enforces per-guild rate policies.
Does it support proxy rotation or anti-detection?
Yes. Device-side verification flows can attach per-device proxies, rotate on errors, and randomize timings/gesture profiles to mimic human behavior.
Can I schedule it to run periodically?
Use the built-in scheduler to rotate invite regeneration, purge expired links, and run verification sweeps. Cron-like rules live in invites.rules.yaml.
What happens during a raid spike?
RaidShield elevates gating (strict captcha/queue), freezes new invites, and alerts moderators. Policies define auto-ban or review queues.
- Execution Speed: Generates and validates invites in ~30–120ms at API level; client-side verification tasks distributed across devices process 40–120 users/min depending on gate complexity.
- Success Rate: End-to-end verification success rate 95% across typical traffic patterns with retries and backoff.
- Scalability: Horizontal scaling across 300–1000 Android devices/emulators and multiple bot shards; queue-based distribution maintains steady throughput.
- Resource Efficiency: Lightweight workers (~60–120MB per shard) with lazy-loaded modules; device actions are batched to minimize context switches.
- Error Handling: Structured retries (jittered exponential), circuit breakers on third-party dependencies, idempotent actions, and webhook alerts for manual intervention.