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) {