diff --git a/commands/CommandInfoCovid.js b/commands/CommandInfoCovid.js index f6155471ee12ebee4b9f8d133b3a5a47635e5837..88ffe171c499c063008d682b73dbe8abc694e766 100644 --- a/commands/CommandInfoCovid.js +++ b/commands/CommandInfoCovid.js @@ -70,7 +70,7 @@ class CommandInfoCovid{ getAllOptionalPart(getRandomPart){ const optionalPartCount = this.getRandomInt(0,4); //0 Ã 3 let output = (optionalPartCount > 0) ? ' ' : ''; //On commence avec un espace si on a quelque chose - for(int i = 0; i < optionalSituationCount; i++){ + for(let i = 0; i < optionalSituationCount; i++){ output += this.getRandomOptionalPart(getRandomPart) + (i < (optionalPartCount - 1) ? ' ' : ''); } return output;