Only join with first client instead of all
This commit is contained in:
parent
a64d7a1d5b
commit
8b12ccad36
1 changed files with 2 additions and 2 deletions
4
index.js
4
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) {
|
||||
|
|
Loading…
Reference in a new issue