diff --git a/config_dist.json b/config_dist.json index 345b2ea..f0b9a22 100644 --- a/config_dist.json +++ b/config_dist.json @@ -5,6 +5,7 @@ "IgnorePNSL": false, "UseParallelUniverse": true, "Users": [], + "Channels": [], "Prefix": "!!", "MaxConnections": 30, "MaxChunkSize": 2000, diff --git a/index.js b/index.js index 1747f07..d13fd92 100644 --- a/index.js +++ b/index.js @@ -193,7 +193,11 @@ if (!Config.IgnorePNSL) { listenClient = createTwitchClient(); listenClient.connect(); listenClient.on('ready', async () => { - await listenClient.join(`#${Config.Username}`); + if (Config.Channels.length === 0) { + await listenClient.join(`#${Config.Username}`); + } else { + await listenClient.joinAll(Config.Channels); + } console.log(`${chalk.green('[TWITCH]')} || Command listener connected`); });