From b12c7d18be9727a551f070038769b8f771a3bd70 Mon Sep 17 00:00:00 2001 From: Adrien Nunes <adrien.nunes@ensiie.fr> Date: Thu, 6 Jan 2022 02:17:18 +0100 Subject: [PATCH] Fuck c'est pas du c --- commands/CommandInfoCovid.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/CommandInfoCovid.js b/commands/CommandInfoCovid.js index f615547..88ffe17 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; -- GitLab