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; }