[Feature]: Twitch support
r2dev2 opened this issue · comments
Checklist
- This is a suggestion for LiveTL, not Hyperchat. I will go to the Hyperchat repo to suggest a feature for Hyperchat.
- This is a suggestion for the LiveTL web extension, not LiveTL iOS or LiveTL Android. I will go to the iOS or Android repo to suggest features for those platforms.
- I have checked for a duplicate or similar feature request/issue. I made sure to check closed issues as well.
- I am not reporting a bug. If I am, I will use the bug report issue template.
- By submitting this issue, you agree to follow our Code of Conduct
Is your feature request related to a problem? Please describe.
KSON is starting Twitch.
Describe the solution you'd like
Make LiveTL work on Twitch by converting the Twitch chat format to YouTube chat format and slapping in our interface.
Describe alternatives you've considered
Use LiveTL lite and mchad because Taishi who translates KSON uses mchad.
Anything else?
No response
tmijs seems to work without CORS issues for getting twitch messages.
const client = new tmi.Client({
options: { debug: true, messagesLogLevel: "info" },
connection: {
reconnect: true,
secure: true
},
channels: ['chess'] // change this channel
});
client.connect().catch(console.error);
client.on('message', (channel, tags, message, self) => {
if(self) return;
console.log(tags, message)
});
I'm tempted to just use MutationObserver so we don't need to create a separate chat connection lmao
I'm tempted to just use MutationObserver so we don't need to create a separate chat connection lmao
That would require more code and effort than just using tmi though kek. All we need to do for twitch is just mount livetl in twitch, use mchad with the twitch stream url, and convert the tmi into a writable store of ytcmessages.
tmi doesn't support VOD chat tho