more dumb issues
This commit is contained in:
@@ -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());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user