wip: debug fk

This commit is contained in:
ethanf 2024-01-31 00:01:47 -06:00
parent 8abb04ba3b
commit ac4a987b85

View File

@ -387,9 +387,13 @@ client.on("interactionCreate", async (interaction) => {
let fatkids = []; let fatkids = [];
// select excess players to be sat out // select excess players to be sat out
console.log(pickingPlayers.length, addupPlayers.length, pickingPlayers.length + addupPlayers.length)
while (pickingPlayers.length + addupPlayers.length > 18) { while (pickingPlayers.length + addupPlayers.length > 18) {
const idx = Math.floor(Math.random() * pickingPlayers.length); 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; let errCount = 0;