more smol changes
This commit is contained in:
parent
0e907469e1
commit
039cab7b00
1 changed files with 4 additions and 2 deletions
6
index.js
6
index.js
|
@ -70,6 +70,7 @@ const runList = async (listData, listID, channel) => {
|
|||
const chunkCount = banChunks.length;
|
||||
|
||||
for (const [i, chunk] of banChunks.entries()) {
|
||||
const currentChunk = i + 1
|
||||
const promises = [];
|
||||
|
||||
for (const entry of chunk) {
|
||||
|
@ -80,11 +81,12 @@ const runList = async (listData, listID, channel) => {
|
|||
|
||||
await Promise.allSettled(promises);
|
||||
|
||||
if (i +1 === chunkCount) {
|
||||
say(Config.Username, `Chunk ${currentChunk}/${chunkCount} of ${listID} executed successfully on channel ${channel}`);
|
||||
|
||||
if (currentChunk === chunkCount) {
|
||||
break;
|
||||
}
|
||||
|
||||
say(Config.Username, `Chunk ${Number(i) + 1}/${chunkCount} of ${listID} executed successfully on channel ${channel}`);
|
||||
await sleep(Config.DelayPerChunk);
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue