# Add Scores for Reactions

**URL:** <https://meta.discourse.org/t/add-scores-for-reactions/275731>\
**Category:** Feature\
**Tags:** pr-welcome, reactions, gamification\
**Created:** [May 31, 2023, 9:01pm UTC](https://meta.discourse.org/t/add-scores-for-reactions/275731 "2023-05-31T21:01:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nam/32/383046_2.png) [@Nam](https://meta.discourse.org/u/Nam)\
**Post date:** [May 31, 2023, 9:01pm UTC](https://meta.discourse.org/t/add-scores-for-reactions/275731/1 "2023-05-31T21:01:59Z")

</div>

> [@Discourse Gamification](https://meta.discourse.org/t/discourse-gamification/225916/1):
>
> Add per-reaction score awarding (requires [Discourse Reactions - Beyond Likes](https://meta.discourse.org/t/discourse-reactions-beyond-likes/183261))

For this one, is it possible to ask for a guidance for where to work on?  
I am not sure if I should makes changes only to the Gamification plugin, or the Reaction plugin as well. Since not every site uses the Reactions plugin, is it okay to include settings about reactions in the gamification plugin?

---

<div class="post-metadata">

**Author:** ![satonotdead](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/satonotdead/32/447830_2.png) [@satonotdead](https://meta.discourse.org/u/satonotdead)\
**Post date:** [May 31, 2023, 9:22pm UTC](https://meta.discourse.org/t/add-scores-for-reactions/275731/2 "2023-05-31T21:22:22Z")

</div>

Can that option only be enabled if Reactions plugin is found? I think that could do the trick 🤟

---

<div class="post-metadata">

**Author:** ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)\
**Post date:** [May 31, 2023, 9:49pm UTC](https://meta.discourse.org/t/add-scores-for-reactions/275731/3 "2023-05-31T21:49:46Z")

</div>

> [@Nam](#):
>
> Since not every site uses the Reactions plugin, is it okay to include settings about reactions in the gamification plugin?

Yes, we already do this for Discourse Solved. Since every scorable extends the base `Scorable` class you can redefine the `enabled?` method to check if a plugin is installed and enabled.

---

<div class="post-metadata">

**Author:** ![Nam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nam/32/383046_2.png) [@Nam](https://meta.discourse.org/u/Nam)\
**Post date:** [June 7, 2023, 7:14pm UTC](https://meta.discourse.org/t/add-scores-for-reactions/275731/4 "2023-06-07T19:14:45Z")

</div>

> [@Discourse Gamification](https://meta.discourse.org/t/discourse-gamification/225916/1):
>
> Add per-reaction score awarding (requires [Discourse Reactions - Beyond Likes](https://meta.discourse.org/t/discourse-reactions-beyond-likes/183261))

I worked on this one. Here is the link for the PR:  
[https://github.com/discourse/discourse-gamification/pull/95](https://github.com/discourse/discourse-gamification/pull/95)

Please let me know if there are any issues!
