See who invited whom, rank the members who bring people in, and give roles for it.
Setting it up
Switch the module on. The bot needs Manage Server to read your server's invites — Discord does not say which invite somebody used, so the bot compares how many times each invite has been used before and after a join. Without it, every join is recorded as "invite not known".
The leaderboard
Each member's invites are the people who joined through their invites and are still here. Somebody who joins and then leaves stops counting, so a count cannot be farmed with throwaway accounts. The page shows joins and leaves beside it.
A join through your server's vanity link is shown as that rather than credited to anybody.
Roles for bringing people in
Add a step — "5 invites: @Recruiter" — and the bot gives the role when somebody reaches it, and takes it back if they fall below it. Members keep every role up to their count.
Posting joins
Switch on Post joins in the server log to have each join posted in your Server log channel, with whose invite it was.
What is kept
Who joined through whose invite is kept while they are in the server, and deleted a year after they leave.
