From 018e03aa6eb04e070865e98142193dc9653f9859 Mon Sep 17 00:00:00 2001 From: MaciejkaG Date: Sat, 2 Mar 2024 18:36:40 +0100 Subject: [PATCH] Minor improvements and fixes --- index.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 212ff4d..9793402 100644 --- a/index.js +++ b/index.js @@ -217,7 +217,12 @@ io.on('connection', async (socket) => { let UTCTs = Math.floor((new Date()).getTime() / 1000 + 90); io.to(playerGame.id).emit('turn update', { turn: 0, phase: "preparation", timerToUTC: UTCTs }); - bships.timer(90, () => GInfo.endPrepPhase(socket)); + bships.timer(90, () => { + GInfo.endPrepPhase(socket); + bships.timer(30, () => { + AFKEnd(playerGame.id); + }); + }); } }