A production-ready Discord Invite Tracker Bot that attributes each join to the correct inviter, flags suspicious joins, and delivers clean analytics to your dashboard or webhook targets. It solves the “who brought whom?” problem for community growth, promotions, and campaigns — with optional Android/Appilot control to validate events through the mobile app when needed.
Created by Appilot, built to showcase our approach to Automation!
If you are looking for custom Discord Invite Tracker Bot, you've just found your team — Let’s Chat.👆👆
This system records and reconciles Discord invites in real time, mapping each new member to their inviter and tracking code-level performance across campaigns. It automates routine moderation workflows like assigning roles, issuing welcome DMs, and exporting growth reports. Businesses and communities get trusted growth attribution, anti-fraud signals, and actionable insights.
- Tracks invite usage per code, inviter, and campaign with second-by-second reconciliation.
- Detects suspicious patterns (deleted codes, vanity swaps, mass joins) and triggers smart alerts.
- Optional Android layer validates edge cases via the Discord mobile app using Appilot + UI Automator.
- Ships with webhooks, exports, and a lightweight dashboard for operations and reporting.
- Role sync, welcome flows, and rate-limit-safe scheduling reduce moderator effort to near zero.
- Real Devices and Emulators: Optional validation on Android devices/emulators (Bluestacks, Nox) to cross-check invite states when Discord API data is incomplete or delayed.
- No-ADB Wireless Automation: Appilot-powered wireless control for mobile validation flows without direct ADB tethering; ideal for rack-mounted device farms.
- Mimicking Human Behavior: Human-like tap/scroll and realistic delays on the Discord mobile app to avoid detection when verifying edge cases.
- Multiple Accounts Support: Run multiple bot tokens/workspaces and multiple Android profiles for campaign segmentation and redundancy.
- Multi-Device Integration: Scale across dozens of emulators and real phones; orchestrated via queues and a central scheduler.
- Exponential Growth for Your Account: Accurate attribution unlocks referral contests, influencer partnerships, and automated rewards that compound server growth.
- Premium Support: Priority SLAs, remote setup, and hands-on tuning for large servers and agencies.
- Granular Role Automation: Auto-assign roles by inviter tier, campaign code, or rules (e.g., probation roles for flagged joins).
- Audit & Event Log: Tamper-evident logs with replayable state for incident review and compliance.
- Webhooks & Exports: Send structured JSON to CRMs/BI tools; scheduled CSV/Parquet exports to S3/Drive.
Additional Features
| Feature | Description |
|---|---|
| Real-Time Analytics | Live leaderboard for inviters, conversion rates per code, and cohort retention snapshots. |
| Anti-Fraud Heuristics | Flags self-invites, burner patterns, sudden code spikes, and vanity-code swaps with severity scoring. |
| Dashboard & API | Minimal dashboard for ops plus REST endpoints for integrating rewards, payouts, or badges. |
| Welcome & DM Flows | Personalized messages based on inviter/campaign with throttling and retry queues. |
| Rate-Limit Aware Scheduler | Buckets sensitive actions and spreads calls to remain safely under Discord limits. |
| Observability | Structured logs, metrics, healthchecks, and alerting hooks for uptime monitors. |
- Input or Trigger — From the Appilot dashboard, select servers, enable invite tracking, and (optionally) attach Android devices/emulators for mobile validation routines.
- Core Logic — The bot syncs existing invites, listens to guild events, and reconciles joins to inviter codes. For tricky cases, Appilot drives UI Automator flows on the Discord Android app to confirm state.
- Output or Action — The system updates leaderboards, assigns roles, sends welcome DMs, and posts analytics to webhooks/BI sinks.
- Other functionalities— Retries, error classes, structured logging, and parallel workers ensure resilience; operators can replay events from the audit log.
- Language: TypeScript/Node.js, Python (workers), Kotlin (optional Android helpers)
- Frameworks: discord.js (v14+), Fastify/Express, UI Automator, Appium, Robot Framework
- Tools: Appilot, ADB (optional), Appium Inspector, Bluestacks/Nox, Scrcpy, Firebase Test Lab, Accessibility Service
- Infrastructure: Dockerized workers, Redis queues, Postgres, Device farm (real/emulated), Proxy networks, Parallel execution, Task queues
discord-invite-tracker-bot/
│
├── src/
│ ├── index.ts
│ ├── bot/
│ │ ├── client.ts
│ │ ├── handlers/
│ │ │ ├── invites.ts
│ │ │ ├── guildMemberAdd.ts
│ │ │ └── rateLimits.ts
│ │ ├── services/
│ │ │ ├── attribution.service.ts
│ │ │ ├── antifraud.service.ts
│ │ │ └── roles.service.ts
│ │ └── utils/
│ │ ├── logger.ts
│ │ └── env.ts
│ ├── api/
│ │ ├── server.ts
│ │ └── routes/
│ │ └── metrics.ts
│ ├── workers/
│ │ ├── exporter.py
│ │ └── webhook.ts
│ └── android/
│ ├── appilot-flows/
│ │ ├── validate_invite_flow.yaml
│ │ └── device_profile.json
│ └── ui-automator/
│ └── VerifyInviteTest.kt
│
├── config/
│ ├── settings.yaml
│ ├── permissions.json
│ └── credentials.env
│
├── dashboards/
│ └── prometheus_rules.yml
│
├── logs/
│ └── app.log
│
├── output/
│ ├── reports/
│ │ ├── daily.csv
│ │ └── weekly.parquet
│ └── webhooks/
│ └── last_payload.json
│
├── docker/
│ ├── Dockerfile
│ └── docker-compose.yml
│
├── package.json
├── requirements.txt
└── README.md
- Community managers use it to attribute growth to campaigns and creators, so they can reward top inviters fairly and transparently.
- Agencies & promoters use it to run referral contests, so they can prove ROI to clients with verifiable metrics.
- Moderation teams use it to flag suspicious joins, so they can keep raids and low-quality traffic out.
- Developers use the API/webhooks to trigger rewards and badges, so they can automate engagement loops.
How do I configure this for multiple servers and accounts?
Provide a list of guild IDs and tokens in settings.yaml. The scheduler spins up isolated shards/workers per guild with shared Redis for coordination.
Does it support proxy rotation or anti-detection on mobile validation?
Yes. Device profiles and proxy endpoints can be assigned per emulator/phone. Human-like timings and randomized UI paths reduce detectable patterns.
Can I schedule exports and leaderboard posts?
Hourly/daily jobs are included. Set cron expressions in settings.yaml to push CSV/Parquet to S3/Drive and summaries to channels/webhooks.
What if Discord deletes or changes invite codes?
Reconciliation uses historical snapshots, vanity resolution, and audit replays. If API state is inconsistent, the Android verifier can confirm via the app.
- Execution Speed: Reconciles joins and updates leaderboards within 1–3 seconds per event under normal load; exports complete in <30s for 50k rows.
- Success Rate: End-to-end attribution success of 95% in typical server conditions (with antifraud heuristics enabled).
- Scalability: Horizontally scales to 300–1,000 Android devices/emulators for validation and 100+ Discord servers via sharding.
- Resource Efficiency: Worker containers idle under 150MB RAM; spikes contained with backpressure and queue depth limits.
- Error Handling: Retries with exponential backoff, circuit breakers for Discord rate limits, structured logging, alerting hooks, and replayable audit logs.