Skip to content

Commit 19657d4

Browse files
committed
Correctly render Twitch gifting additional subs during Subtember
1 parent f3af88d commit 19657d4

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

TwitchDownloaderCore/Tools/HighlightIcons.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,13 @@ public static HighlightType GetHighlightType(Comment comment)
160160
if (comment.commenter._id is ANONYMOUS_GIFT_ACCOUNT_ID or TWITCH_ACCOUNT_ID && GiftAnonymousRegex.IsMatch(comment.message.body))
161161
return HighlightType.GiftedAnonymous;
162162

163+
if (comment.commenter._id is TWITCH_ACCOUNT_ID && comment.message.body.EndsWith("'s gift! ") &&
164+
Regex.IsMatch(comment.message.body, @"^We added \d+ Gift Subs (?:AND \d+ Bonus Gift Subs )?to "))
165+
{
166+
// TODO: Make a dedicated enum value for Subtember?
167+
return HighlightType.GiftedMany;
168+
}
169+
163170
return HighlightType.None;
164171
}
165172

0 commit comments

Comments
 (0)