more dumb issues

This commit is contained in:
2022-02-11 13:29:17 -06:00
parent 3ed56b7927
commit 827dafbb99
2 changed files with 4 additions and 4 deletions

View File

@@ -18,7 +18,7 @@ try {
let queueJson = JSON.parse(_QUEUE);
for (let channelId of queueJson) {
for (let channelId in queueJson) {
let {teamsize} = queueJson[channelId] as queueInfoBase;
if (teamsize)
QUEUE.set(channelId, { teamsize, players: [] })
@@ -44,7 +44,7 @@ async function checkQueue(channel: TextChannel) {
if (!info)
return;
if (info.players.length > info.teamsize) {
if (info.players.length >= info.teamsize) {
let team = info.players.splice(0, info.teamsize).map(m => m.toString());