You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (twitch == null) { StreamUtils.queueAddMessage(EnumChatFormatting.RED + "Twitch chat is not enabled!"); return; }
153
+
TwitchChatchat = twitch.getChat();
154
+
if (chat == null) { StreamUtils.queueAddMessage(EnumChatFormatting.RED + "Twitch chat is not enabled!"); return; }
155
+
chat.joinChannel(channel);
156
+
if (!chat.isChannelJoined(channel)) { StreamUtils.queueAddMessage(EnumChatFormatting.RED + "Something went wrong: Could not join the channel."); return; }
157
+
if (config.followEventEnabled.getBoolean()) twitch.getClientHelper().enableFollowEventListener(channel);
if (twitch == null) { StreamUtils.queueAddMessage(EnumChatFormatting.RED + "Twitch chat is not enabled!"); return; }
170
+
TwitchChatchat = twitch.getChat();
171
+
if (chat == null) { StreamUtils.queueAddMessage(EnumChatFormatting.RED + "Twitch chat is not enabled!"); return; }
172
+
chat.leaveChannel(channel);
173
+
if (chat.isChannelJoined(channel)) { StreamUtils.queueAddMessage(EnumChatFormatting.RED + "Something went wrong: Could not leave the channel."); return; }
174
+
if (config.followEventEnabled.getBoolean()) twitch.getClientHelper().disableFollowEventListener(channel);
0 commit comments