Skip to content

Commit

Permalink
Mark highlighted messages as highlighted when converting to TDL (#460)
Browse files Browse the repository at this point in the history
* Mark highlighted messages as highlighted when converting to TDL

* Update internal/utils/tdl.go

Co-authored-by: Isaac <[email protected]>

---------

Co-authored-by: Isaac <[email protected]>
  • Loading branch information
ScrubN and Zibbp authored Jul 1, 2024
1 parent ba4dbc8 commit 735c9f2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions internal/utils/tdl.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,11 @@ func ConvertTwitchLiveChatToTDLChat(path string, channelName string, videoID str
},
}

if (liveComment.MessageType == "highlighted_message") {
var highlightString = "highlighted-message"
tdlComment.Message.UserNoticeParams.MsgID = &highlightString
}

// create the first message fragment
tdlComment.Message.Fragments = append(tdlComment.Message.Fragments, Fragment{
Text: liveComment.Message,
Expand Down

0 comments on commit 735c9f2

Please sign in to comment.