From 0de5b2b933102d57f0d005e685cb56e9d1f96fdb Mon Sep 17 00:00:00 2001 From: Leppunen Date: Tue, 30 Mar 2021 12:58:09 +0300 Subject: [PATCH] Fix banchunks getting skipped --- index.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/index.js b/index.js index 8707e57..2cfa8d7 100644 --- a/index.js +++ b/index.js @@ -80,9 +80,8 @@ const runList = async (listData, listID, channel) => { await Promise.allSettled(promises); - banChunks.shift(); - - if (banChunks.length === 0) { + if (i === chunkCount) { + console.log('Reached the end of ban chunks. Breaking loop.') break; }