From 8b12ccad365bf3a37448a15b20b5c9a8ca9c9831 Mon Sep 17 00:00:00 2001 From: Leppunen Date: Mon, 23 Aug 2021 19:29:56 +0300 Subject: [PATCH] Only join with first client instead of all --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 8e9d257..1aa8554 100644 --- a/index.js +++ b/index.js @@ -171,8 +171,8 @@ if (!Config.IgnorePNSL) { await Promise.all([...Array(Config.MaxConnections)].map(async (_, i) => { clients[i] = createTwitchClient(); clients[i].connect(); - clients[i].on('ready', async () => { - await clients[i].join(Config.Username); + clients[0].on('ready', async () => { + await clients[0].join(Config.Username); }); clients[i].on('error', (error) => { if (error instanceof SayError) {