From 453a3b1b422ba66f1dad90c98aea91d2ec197285 Mon Sep 17 00:00:00 2001 From: ThePendulum Date: Tue, 2 Apr 2024 01:09:31 +0200 Subject: [PATCH] Fixed letters game board timeout. --- src/games/letters.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/games/letters.js b/src/games/letters.js index 2529abf..71fb465 100755 --- a/src/games/letters.js +++ b/src/games/letters.js @@ -91,19 +91,19 @@ async function play(context) { context.sendMessage(`${getBoard(context)} You have ${style.bold(style.green(settings.timeout))} seconds, let's start!`, context.room.id); try { - await timers.setTimeout((settings.timeout / 3) * 1000, null, { signal: game.ac.signal }); + await timers.setTimeout((settings.timeout / 5) * 1000, null, { signal: game.ac.signal }); context.sendMessage(`${getBoard(context)} You have ${style.bold(style.green(`${Math.round((settings.timeout / 5) * 4)} seconds`))} left`, context.room.id); - await timers.setTimeout((settings.timeout / 3) * 1000, null, { signal: game.ac.signal }); + await timers.setTimeout((settings.timeout / 5) * 1000, null, { signal: game.ac.signal }); context.sendMessage(`${getBoard(context)} You have ${style.bold(style.green(`${Math.round((settings.timeout / 5) * 3)} seconds`))} left`, context.room.id); - await timers.setTimeout((settings.timeout / 3) * 1000, null, { signal: game.ac.signal }); + await timers.setTimeout((settings.timeout / 5) * 1000, null, { signal: game.ac.signal }); context.sendMessage(`${getBoard(context)} You have ${style.bold(style.green(`${Math.round((settings.timeout / 5) * 2)} seconds`))} left`, context.room.id); - await timers.setTimeout((settings.timeout / 3) * 1000, null, { signal: game.ac.signal }); + await timers.setTimeout((settings.timeout / 5) * 1000, null, { signal: game.ac.signal }); context.sendMessage(`${getBoard(context)} You have ${style.bold(style.green(`${Math.round(settings.timeout / 5)} seconds`))} left`, context.room.id); - await timers.setTimeout((settings.timeout / 3) * 1000, null, { signal: game.ac.signal }); + await timers.setTimeout((settings.timeout / 5) * 1000, null, { signal: game.ac.signal }); stop(context); } catch (error) {