diff --git a/commands/CommandInfoCovid.js b/commands/CommandInfoCovid.js index 88ffe171c499c063008d682b73dbe8abc694e766..35f5bbf6b308ed0a242fef4123b7c7d2e47ad3cd 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}`; }