Glodenox / twitch-chat-monitor

Twitch Chat Monitor that allows the chat to be shown comfortably on a big monitor. Useful for room-scale streaming where the chat needs to be readable from a distance.
40 stars 11 forks source link

Add support for badges #12

Closed Glodenox closed 2 years ago

Glodenox commented 4 years ago

It is possible to show the emoticons as text or images, just like it is possible to show or hide badges.

Possible values for both: hide, show text, show image

Glodenox commented 2 years ago

Decided against hiding emotes as these are much of the basis of Twitch.

For badges, it seems like it would only make sense to either show or not show them. The global badges can be retrieved from https://badges.twitch.tv/v1/badges/global/display?language=en. This should probably be retrieved on each page load. The channel-specific badges can be retrieved from https://badges.twitch.tv/v1/badges/channels/[channel-id-here]/display?language=en. The channel id is received from tmi.js in the state parameter with the name "room-id".