From 4945a28df77c497770d556fb297832ee8c605ff7 Mon Sep 17 00:00:00 2001 From: nutty Date: Mon, 14 Sep 2026 12:54:28 +1000 Subject: [PATCH] Fixed Twitch Watch Streak events --- horizontal-chat/script.js | 4 ++-- multichat-overlay/script.js | 2 +- multistream-alerts/script.js | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/horizontal-chat/script.js b/horizontal-chat/script.js index 7cc6f56..6933aba 100644 --- a/horizontal-chat/script.js +++ b/horizontal-chat/script.js @@ -839,8 +839,8 @@ async function TwitchWatchStreak(data) { return; // TODO: Streamer.bot v1.0.5-alpha3 changed the data sent with this event, so for backwards compatibility we need to check for both the old and new properties - const displayName = data.displayName ?? data.user.name; - const watchStreak = data.watchStreak ?? data.streak_count; + const displayName = data.displayName ?? data.user.name;data.streakCount + const watchStreak = data.watchStreak ?? data.streak_count ?? data.streakCount; let message = `${displayName} is currently on a ${watchStreak} stream streak!`; diff --git a/multichat-overlay/script.js b/multichat-overlay/script.js index aea3f9c..7537628 100644 --- a/multichat-overlay/script.js +++ b/multichat-overlay/script.js @@ -1313,7 +1313,7 @@ async function TwitchWatchStreak(data) { // TODO: Streamer.bot v1.0.5-alpha3 changed the data sent with this event, so for backwards compatibility we need to check for both the old and new properties const displayName = data.displayName ?? data.user.name; - const watchStreak = data.watchStreak ?? data.streak_count; + const watchStreak = data.watchStreak ?? data.streak_count ?? data.streakCount; titleDiv.innerText = `${displayName} is currently on a ${watchStreak} stream streak! `; contentDiv.innerHTML = ConstructMessageFromParts(data.parts); diff --git a/multistream-alerts/script.js b/multistream-alerts/script.js index 7705497..a3c5e8a 100644 --- a/multistream-alerts/script.js +++ b/multistream-alerts/script.js @@ -779,7 +779,7 @@ async function TwitchWatchStreak(data) { // Set the text // TODO: Streamer.bot v1.0.5-alpha3 changed the data sent with this event, so for backwards compatibility we need to check for both the old and new properties const displayName = data.displayName ?? data.user.name; - const watchStreak = data.watchStreak ?? data.streak_count; + const watchStreak = data.watchStreak ?? data.streak_count ?? data.streakCount; UpdateAlertBox( 'twitch',