Okay, I’ve just committed what I think is a good first stab at this:
-
The job runs once a month
-
It finds any users created in that period, and comes up with a score based on how many likes they’ve received out of how many times they’ve posted.
-
Likes from older accounts are weighed more than likes from new accounts, to prevent abuse via creating new accounts to get the badge.
-
A like from an account < 1 week old = 0.1
-
A like from an account < 1 month old = 0.5
-
A like from an account > 1 month = 1.0
-
Two users are selected, and they receive a PM from the system congratulating them on the badge.
The sticky bit is this:
This could be really complicated. We’re either talking about creating a new badge every month (which is much more complicated for system badges, not to mention clutters up the database), or perhaps just changing the display of the text.
For now, the PM the user receives says
Congratulations, you’ve been awarded the Rookie of the Month award for %{month_year}.
So it’s quite clear to the user who received it what month they received it for. Other users can also figure it out pretty easily from the badges page:
Now, I could add a flag to the badge type that would make it show the month/year the badge was awarded on that page. Instead of 22h it could say “Granted Mar, 2017” if the flag is set. Would that work?
