August 27, 2026 · The Minely team
How to build an invite tracker bot with AI (join sources, leaderboards)
Invite competitions are a classic growth hack — until the winner invites fifty alts and collects anyway. An invite tracker bot tells real growth from fake: who invited whom, which joins stuck, and who is farming. That distinction is the whole product.
What an invite tracker bot actually is
An invite tracker bot records which invite each member used and who created it, building a join tree with real counts: total, active, left, and suspected-fake invites per member. A leaderboard shows the genuine inviters, and anti-farm rules keep competitions honest.
How it works under the hood
On join, the bot matches the used invite (from the guild's invite list diff) and credits its creator with a record. Leaves subtract from the active count; short stays and new accounts flag as suspected fake. The /invites command shows a member's breakdown, and the leaderboard ranks by active, non-fake joins. Reward roles can key off the honest counts.
The prompt that builds it
You do not have to write this yourself. A precise description is enough:
an invite tracker bot that records who invited whom, tracks total active left and fake counts, a leaderboard, and fake-join detection for invite competitions
Name the commands, the permissions, and the exact messages players see. Precision here is what makes the first build land close.
Building it in the right order
- Build the invite diffing and join attribution.
- Record the join tree with per-member counts.
- Implement leave tracking and fake heuristics.
- Add /invites and the leaderboard.
- Wire reward roles keyed on honest counts.
The details that matter in production
In production, the first thing you learn is that the happy path is the easy half. The edges are where the work lives: restarts, protection interactions, full inventories, and players who treat every system like an exploit puzzle. Build for those from day one and the launch weekend is quiet instead of a fire drill.
Storage and cleanup deserve special attention. Write state as it changes rather than on shutdown, clear per-player state on quit and on world change, and make every admin-facing action leave an audit line. The first time something goes wrong, those records are the difference between a two-minute review and an evening of guessing.
Finally, test like a hostile user. Spam-click every GUI, rejoin mid-action, try the command with no permission and with every permission, and run it while the server is under load. The bugs that survive that pass are the ones worth shipping.
Tuning it after the first build
Fake heuristics that work: account age under a week, stay under an hour, name similarity across joins. Weight the leaderboard by active non-fake joins only; anything else rewards the farmer.
Tips that save you a rebuild
- Attribute on the join event's invite diff; vanity URLs break naive tracking.
- Show the fake count publicly in competitions; sunlight ends farming.
- Review the flag rules monthly against real cases.
- Keep the join tree exportable for dispute reviews.
Questions people ask
Can I run invite competitions?
Yes — a competition mode with a window, per-window counts, and prizes at the end.
What about rejoins?
They re-credit the original inviter or not, per config — most servers choose not.
How accurate is attribution?
Very for normal invites; vanity and widget joins need a note in the display.
Try the prompt above on a fresh project. You will see the plan, the code streaming in, and the repair loop finish the job — then a jar to download.
