From d6ee83966db610f303de9cd7b10bd10c33503d9b Mon Sep 17 00:00:00 2001
From: Adrien Nunes <adrien.nunes@ensiie.fr>
Date: Thu, 6 Jan 2022 02:19:57 +0100
Subject: [PATCH] Quick fix

---
 commands/CommandInfoCovid.js | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/commands/CommandInfoCovid.js b/commands/CommandInfoCovid.js
index 88ffe17..35f5bbf 100644
--- a/commands/CommandInfoCovid.js
+++ b/commands/CommandInfoCovid.js
@@ -35,17 +35,17 @@ class CommandInfoCovid{
 
     getRandomSituation(){
         const situation = this.situations[Math.floor(Math.random()*this.situations.length)];
-        return replaceRandomIntString(situation, 1, 24);
+        return this.replaceRandomIntString(situation, 1, 24);
     }
 
     getRandomAction(){
         const action = this.actions[Math.floor(Math.random()*this.actions.length)];
-        return replaceRandomIntString(replaceSmallRandomIntString(action), 1, 24);
+        return this.replaceRandomIntString(replaceSmallRandomIntString(action), 1, 24);
     }
 
     getRandomTemps(){
         const temps = this.temps[Math.floor(Math.random()*this.temps.length)];
-        return replaceRandomIntString(temps, 2, 24);
+        return this.replaceRandomIntString(temps, 2, 24);
     }
 
     getRandomConnecteur(){
@@ -62,8 +62,8 @@ class CommandInfoCovid{
 
     getRandomOptionalPart(getRandomPart){
         const connecteur = this.getRandomConnecteur();
-        const part = getRandomPart();
-        const amplificateur = getRandomInt(0,2) ? ` ${this.getRandomAmplificateur()}` : '';
+        const part = this.getRandomPart();
+        const amplificateur = this.getRandomInt(0,2) ? ` ${this.getRandomAmplificateur()}` : '';
         return `${connecteur} ${part}${amplificateur}`;
     }
 
-- 
GitLab