diff --git a/index.js b/index.js index a5d8098..8707e57 100644 --- a/index.js +++ b/index.js @@ -67,6 +67,8 @@ const runList = async (listData, listID, channel) => { banChunks.push(banArr.splice(0, Config.MaxChunkSize)); } + const chunkCount = banChunks.length; + for (const [i, chunk] of banChunks.entries()) { const promises = []; @@ -84,7 +86,7 @@ const runList = async (listData, listID, channel) => { break; } - say(Config.Username, `Chunk ${Number(i) + 1} of ${listID} executed successfully on channel ${channel}`); + say(Config.Username, `Chunk ${Number(i) + 1}/${chunkCount} of ${listID} executed successfully on channel ${channel}`); await sleep(Config.DelayPerChunk); } } else { @@ -161,7 +163,7 @@ if (!Config.IgnorePNSL){ clients[i].on('error', (error) => { if (error instanceof SayError) return; if (error instanceof UserBanError) { - return console.warn(`Failed to ban user ${error.username} from ${error.channelname}`); + return console.warn(`Failed to ban user ${error.username} from ${error.channelName}`); } if (error instanceof ConnectionError) { if (clients[i].ready) {