From 48535a8d2add4cd48979590c4629b11dbc74e7c0 Mon Sep 17 00:00:00 2001 From: nuttylmao Date: Sun, 31 Aug 2025 13:56:06 +1000 Subject: [PATCH] Fixed bug for TikTokGift where it showed every gift. It now only shows when the streak has ended. --- multistream-alerts/script.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/multistream-alerts/script.js b/multistream-alerts/script.js index e76098d..30eacaf 100644 --- a/multistream-alerts/script.js +++ b/multistream-alerts/script.js @@ -1369,6 +1369,15 @@ async function TikTokGift(data) { if (!showTikTokGifts) return; + if (data.giftType === 1 && !data.repeatEnd) { + // Streak in progress => show only temporary + console.debug(`${data.uniqueId} is sending gift ${data.giftName} x${data.repeatCount}`); + return; + } + + // Streak ended or non-streakable gift => process the gift with final repeat_count + console.debug(`${data.uniqueId} has sent gift ${data.giftName} x${data.repeatCount}`); + // Set the text const username = data.nickname; const tiktokIcon = ``;