Skip to content
This repository has been archived by the owner on Nov 30, 2020. It is now read-only.

Easy (and correct) name capitalization, sub/turbo status #16

Closed
WizardCM opened this issue Jun 14, 2015 · 4 comments
Closed

Easy (and correct) name capitalization, sub/turbo status #16

WizardCM opened this issue Jun 14, 2015 · 4 comments

Comments

@WizardCM
Copy link

As you're using IRC to initially collect chat, you can actually enable IRCv3 tags for PRIVMSG and parse them for the correct name capitalization, and fetching the chatter's turbo and subscriber status for emulating chat just that little bit more.

First, send a CAP REQ :twitch.tv/tags to let the server know you understand the tags, then simply parse the new message, using the display-name, turbo and subscriber.

Before:
:inanecandor!inanecandor@inanecandor.tmi.twitch.tv PRIVMSG #reninjakitteh :so far Kappa
After:
@color=;display-name=InaneCandor;emotes=25:7-11;subscriber=0;turbo=0;user-type=;user_type= :inanecandor!inanecandor@inanecandor.tmi.twitch.tv PRIVMSG #reninjakitteh :so far Kappa

This is fully documented here and would be an awesome addition.

Thanks for making such a sweet and useful extension! Keep up the great work. :)

@pencil
Copy link
Owner

pencil commented Jun 14, 2015

Thank's for pointing that out! First time I hear about Twitch's IRCv3. I will see what I can do.

@pencil
Copy link
Owner

pencil commented Jun 17, 2015

Twitch did some changes related to this. Getting the EMOTESET using TWITCHCLIENT 3 does no longer work which forced me to use the new emote range supplied in the IRCv3 data (see b17f8d4). As a side effect, names should now be correctly capitalized (for messages as of today). Badges etc. will follow later.

@WizardCM
Copy link
Author

Twitch did say they were planning on phasing out TWITCHCLIENT completely in favour of CAP, so that may be it.

@pencil
Copy link
Owner

pencil commented Jul 24, 2015

Progress of chat badges implementation will be tracked in #20.

@pencil pencil closed this as completed Jul 24, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants