Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Display channel of emote origin in tooltips #917

Open
igoresque opened this issue Jan 9, 2019 · 4 comments
Open

Display channel of emote origin in tooltips #917

igoresque opened this issue Jan 9, 2019 · 4 comments

Comments

@igoresque
Copy link

Twitch sub emotes don't have links to emote page, so it would be nice to either see the channel it's from in a tooltip, or have a link to the channel you can sub to to get the emote in the place where the ffz and bttv emote links are located.

@ferostarsky
Copy link

ferostarsky commented Apr 19, 2019

Summary of this idea: "Display channel of sub emotes (or be able to click it and it will open the channel where you can get the sub emote)

I also support this feature, BTTV already has it, so when you click the emote you can see the details, see screenshot:
508YHNl

I think it is possible to do this for BTTV, because they probably parse the emote img html element:

<img class="chat-image chat-line__message--emote tw-inline-block" src="https://static-cdn.jtvnw.net/emoticons/v1/300113079/1.0" srcset="https://static-cdn.jtvnw.net/emoticons/v1/300113079/1.0 1x,https://static-cdn.jtvnw.net/emoticons/v1/300113079/2.0 2x,https://static-cdn.jtvnw.net/emoticons/v1/300113079/3.0 4x" alt="cripbTeef"> => cripbTeef

you extract the 300113079 and then you should be able from somewhere get the channel.
Only solution I found fast was to use the api.twitchemotes.com but maybe that is not the best approach.

You build this request: https://api.twitchemotes.com/api/v4/emotes?id=300113079
Response: [{"code":"cripbTeef","emoticon_set":300066980,"id":300113079,"channel_id":"158374052","channel_name":"cripb"}]

and then you have the channel name and you are able to build a link to it.

I just put this solution together fast, did not scout how your code works or how you get the chat messages, probably REST calls, maybe you will be able to work with this somehow.

Keep up the good work, chatterino2 is really good. Thanks guys.

@x9136
Copy link

x9136 commented Mar 7, 2024

I don't know what additional info is loaded to display sub emotes initially, but if there's a channel name, I suggest making the channel link in the same place where the 7tv emotes link is now. Only instead of "Open 7TV emote link" write "Open emote source channel".

@pajlada
Copy link
Member

pajlada commented Mar 7, 2024

This looks like it might be possible with chat over eventsub

@Felanbird Felanbird removed the blocked Something out of our power needs to change before proceeding with this issue label Mar 8, 2024
@Felanbird
Copy link
Collaborator

Felanbird commented Mar 8, 2024

Almost certainly possible now, finally https://dev.twitch.tv/docs/api/reference/#get-user-emotes

actually the helix API isn't necessary for this, eventsub alone handles it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants