From e37a40f6ac1f921c8868dee7ca1283d63952fea0 Mon Sep 17 00:00:00 2001 From: arthur Date: Wed, 29 May 2024 15:27:39 +0200 Subject: [PATCH] corrige pf commande --- commands/jeux/pile-face.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/commands/jeux/pile-face.js b/commands/jeux/pile-face.js index e49d844..3da0097 100644 --- a/commands/jeux/pile-face.js +++ b/commands/jeux/pile-face.js @@ -103,7 +103,8 @@ module.exports = { await new Promise(resolve => setTimeout(resolve, 5000)); - const result = Math.floor(Math.random() * 1); + const result = Math.floor(Math.random() * 2); + console.log(result); let colorR = ''; if (result === 0) { colorR = 'pile';