From 6a16a7e07fb9acdf853875c13e920f3ea83900d6 Mon Sep 17 00:00:00 2001 From: Leppunen Date: Mon, 6 Sep 2021 23:23:14 +0300 Subject: [PATCH] Always join bot channel --- index.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/index.js b/index.js index d13fd92..e45937f 100644 --- a/index.js +++ b/index.js @@ -193,11 +193,12 @@ if (!Config.IgnorePNSL) { listenClient = createTwitchClient(); listenClient.connect(); listenClient.on('ready', async () => { - if (Config.Channels.length === 0) { - await listenClient.join(`#${Config.Username}`); - } else { + await listenClient.join(`#${Config.Username}`); + + if (Config.Channels.length !== 0) { await listenClient.joinAll(Config.Channels); } + console.log(`${chalk.green('[TWITCH]')} || Command listener connected`); });