From f1ed99902ba2f674e276d5005fc11869d671eb99 Mon Sep 17 00:00:00 2001 From: Akita Noek Date: Fri, 1 Mar 2024 14:40:39 -0700 Subject: [PATCH] Format for old prettier since we can't upgrade yet --- src/Game.ts | 13 +++++-------- src/pools.ts | 8 ++++---- 2 files changed, 9 insertions(+), 12 deletions(-) diff --git a/src/Game.ts b/src/Game.ts index b72e23a8..644ac5ef 100644 --- a/src/Game.ts +++ b/src/Game.ts @@ -811,14 +811,11 @@ export class Game extends EventEmitter { this.sendChat("Maximum pause time reached, unpausing clock"); this.resumeGame(); } else { - this.unpause_timeout = setTimeout( - () => { - this.unpause_timeout = undefined; - this.sendChat("Maximum pause time reached, unpausing clock"); - this.resumeGame(); - }, - (config.max_pause_time - pause_duration_s) * 1000, - ); + this.unpause_timeout = setTimeout(() => { + this.unpause_timeout = undefined; + this.sendChat("Maximum pause time reached, unpausing clock"); + this.resumeGame(); + }, (config.max_pause_time - pause_duration_s) * 1000); } } } diff --git a/src/pools.ts b/src/pools.ts index 511d3973..efae5638 100644 --- a/src/pools.ts +++ b/src/pools.ts @@ -268,12 +268,12 @@ export const bot_pools: { config.ending_bot?.manager === "pool" ? new BotPoolManager("Ending", config.ending_bot) : config.ending_bot?.manager === "persistent" - ? new PersistentBotManager("Ending", config.ending_bot) - : null, + ? new PersistentBotManager("Ending", config.ending_bot) + : null, opening: config.opening_bot?.manager === "pool" ? new BotPoolManager("Opening", config.opening_bot) : config.opening_bot?.manager === "persistent" - ? new PersistentBotManager("Opening", config.opening_bot) - : null, + ? new PersistentBotManager("Opening", config.opening_bot) + : null, };