TwitchDownloader icon indicating copy to clipboard operation
TwitchDownloader copied to clipboard

Possible to support livestream IRC raw message input file for chat render?

Open loopedice opened this issue 1 year ago • 2 comments

Checklist

Write your feature request here

Not asking to include the ability to download a livestream chat as it is going, but more so to provide it as an option when using the chat render CLI to take it as an input argument.

As shown in the twitch IRC example here https://dev.twitch.tv/docs/irc/example-parser/#parser-output. Livestream twitch chats will output the below raw strings, which I believe contains mostly everything needed to render the chat like the VOD version. Only thing missing is the start and end time, but you could infer that from the first line tmi-sent-ts=1550868292494 and last line tmi-sent-ts=xxx of the file.

Likewise looping through and adding the time between messages should be doable as well.

@badges=staff/1,broadcaster/1,turbo/1;color=#FF0000;display-name=PetsgomOO;emote-only=1;emotes=33:0-7;flags=0-7:A.6/P.6,25-36:A.1/I.2;id=c285c9ed-8b1b-4702-ae1c-c64d76cc74ef;mod=0;room-id=81046256;subscriber=0;turbo=0;tmi-sent-ts=1550868292494;user-id=81046256;user-type=staff :[email protected] PRIVMSG #petsgomoo :DansGame

Indeed the example in the link showcases how to parse this into a JSON format already, but it isn't compatible with TwitchDownloader.

loopedice avatar Apr 02 '24 07:04 loopedice

This is an interesting idea. I don't think I want to add the support to TwitchDownloader for the time being, however I will add it to the project I am working on to address #629.

The idea of the project is to be a utility for translating chats from other logging services into TwitchDownloader compatible chats. At the moment the project is not public as it is still in development, but I will see about prioritizing it a bit more.

ScrubN avatar Apr 02 '24 19:04 ScrubN

@ScrubN great to hear, look forward to it!

loopedice avatar Apr 04 '24 09:04 loopedice