I want to create an event-based notification and badging system that would award users when they accomplish certain goals. Goals might include:
- Posting 20 entries on a forum -> alert on homepage highlighting user, award of badge
- Logging in to the site 10 days straight -> congrats to message to user on homepage
- Commenting on 10 forum posts -> forum badge award
Would this be a job for a state machine such as AASM? I haven't played much with such systems. Would that be the way to go to define events or are there better plugins/solutions that would accommodate this type of behavior? Any tutorials or recommendations for approach would be greatly appreciated.