instafluff / ComfyJS

Comfiest Twitch Chat Library for JavaScript | NodeJS + Browser Support

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Joining Multiple Channels

Arubinu opened this issue · comments

This feature has a problem.

When I add in the third argument of the 'Comfy.Init' function something other than undefined, null, or false, the main channel no longer calls the 'Confy.onChat' function.

ComfyJS.Init( "MyTwitchChannel", null );

I was able to work around the problem by putting an empty channel as the main channel and first element of the array of other channels.

ComfyJS.Init( "", null, [ "", "ChannelA", "ChannelB", "ChannelC" ] );

Correction, I made a mistake in the concatenation, it is just missing the main channel in the other channels when there are some added.

So it would take this:

ComfyJS.Init( "ChannelA", null, [ "ChannelA", "ChannelB", "ChannelC" ] );

Rather than that:

ComfyJS.Init( "ChannelA", null, [ "ChannelB", "ChannelC" ] );