wip: debug fk
This commit is contained in:
parent
8abb04ba3b
commit
ac4a987b85
6
index.js
6
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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user