From cc273b13ad34921e436e058b8b5c6e286b5b706b Mon Sep 17 00:00:00 2001
From: Adrien Nunes <adrien.nunes@ensiie.fr>
Date: Thu, 7 Oct 2021 18:53:46 +0200
Subject: [PATCH] fix score

---
 vote/VoteParser.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/vote/VoteParser.js b/vote/VoteParser.js
index 9175cef..d249458 100644
--- a/vote/VoteParser.js
+++ b/vote/VoteParser.js
@@ -32,7 +32,7 @@ class VoteParser{
         if(this.categories.has(message.channelId)){
             const category = this.categories.get(message.channelId);
             const reactions = message.reactions.resolve(this.upVote);
-            if(reactions && reactions.count >= score){
+            if(reactions && reactions.count >= this.score){
                 this.add(message, category);
             }
         }
-- 
GitLab