Skip to content

Commit

Permalink
Add Valorant account ID to bonus gift sub detection
Browse files Browse the repository at this point in the history
  • Loading branch information
ScrubN committed Dec 26, 2024
1 parent 6e9ea63 commit 390880f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions TwitchDownloaderCore/Tools/HighlightIcons.cs
Original file line number Diff line number Diff line change
Expand Up @@ -160,10 +160,11 @@ public static HighlightType GetHighlightType(Comment comment)
if (comment.commenter._id is ANONYMOUS_GIFT_ACCOUNT_ID or TWITCH_ACCOUNT_ID && GiftAnonymousRegex.IsMatch(comment.message.body))
return HighlightType.GiftedAnonymous;

if (comment.commenter._id is TWITCH_ACCOUNT_ID && comment.message.body.EndsWith("'s gift! ") &&
const string VALORANT_ACCOUNT_ID = "490592527";
if (comment.commenter._id is TWITCH_ACCOUNT_ID or VALORANT_ACCOUNT_ID && comment.message.body.EndsWith("'s gift! ") &&
Regex.IsMatch(comment.message.body, @"^We added \d+ Gift Subs (?:AND \d+ Bonus Gift Subs )?to "))
{
// TODO: Make a dedicated enum value for Subtember?
// TODO: Make a dedicated enum value for bonus gift subs?
return HighlightType.GiftedMany;
}

Expand Down

0 comments on commit 390880f

Please sign in to comment.