Open vertyco opened 3 years ago
@vertyco While I do think that this would be a nice addition to prevent alts, etc. from joining, getting credits, then leaving, this would require a quite major change to the data structure. Currently, the only information stored is which users have ran the command, not when they ran it and who referred them. I may decide to implement this in the future, but am currently not sure.
A toggle to remove the currency reward from the user being referred, if the new user just joins/refers and then leaves immediately within a set time after running the command, that reward will be taken back from the user.
Additional Context Event: user_leave If:
Do:
[p]referset userleave [toggle] [time]
- toggle reward removal when user leaves after using the referred command, and set so that if user leaves BEFORE X hours after running the command, the currency will be removed from who they referredThe cog would not need a ticker, just needs to compare timestamp of command executed and user_leave event for each user that does the command, and compare timestamps to determine if that time difference is LESS than the X hours set by the command