From ac4a987b85d472b54a6deea40c9f98009a8d0372 Mon Sep 17 00:00:00 2001 From: ethanf Date: Wed, 31 Jan 2024 00:01:47 -0600 Subject: [PATCH] wip: debug fk --- index.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index bb4f4bb..eb265d0 100644 --- a/index.js +++ b/index.js @@ -387,9 +387,13 @@ client.on("interactionCreate", async (interaction) => { let fatkids = []; // select excess players to be sat out + console.log(pickingPlayers.length, addupPlayers.length, pickingPlayers.length + addupPlayers.length) + while (pickingPlayers.length + addupPlayers.length > 18) { const idx = Math.floor(Math.random() * pickingPlayers.length); - fatkids.push(pickingPlayers.splice(idx, 1)[0]); + let fk = await pickingPlayers.splice(idx, 1)[0]; + console.log(getApplicableName(fk)) + fatkids.push(fk); } let errCount = 0;