Only join with first client instead of all

This commit is contained in:
Leppunen 2021-08-23 19:29:56 +03:00
parent a64d7a1d5b
commit 8b12ccad36

View file

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