diff --git a/config_dist.json b/config_dist.json index 4b0db64..558eabb 100644 --- a/config_dist.json +++ b/config_dist.json @@ -8,6 +8,7 @@ "Blacklisted" : [], "Users": [], "Channels": [], + "SendChunks": true, "SendMeme": false, "Prefix": "!!", "MaxConnections": 30, diff --git a/index.js b/index.js index ca68ee0..07597ec 100644 --- a/index.js +++ b/index.js @@ -89,7 +89,7 @@ const runList = async (listData, listID, channel, sourceChannel) => { await Promise.allSettled(promises); say(sourceChannel, `${Config.UseParallelUniverse === true ? '[PU]' : ''} Chunk ${currentChunk}/${chunkCount} of ${listID} executed successfully on channel ${targetChannel}`); - say(channel, `Chunk ${currentChunk}/${chunkCount} executed successfully`); + if (Config.SendChunks) say(channel, `Chunk ${currentChunk}/${chunkCount} executed successfully`); if (currentChunk === chunkCount) { break; @@ -217,7 +217,7 @@ if (!Config.IgnorePNSL) { const args = content.slice(1); if (command === 'ping') { - let channel = args[0]; + const channel = args[0]; return say(channel || channelName, `${clients.filter((i) => i.ready).length} Clients from total of ${clients.length} are operational`); } @@ -227,7 +227,7 @@ if (!Config.IgnorePNSL) { if (command === 'runlist') { const listID = args[0]; - const channel = args[1]; + let channel = args[1]; if (!listID) { return say(channelName, 'No list ID provided!');