instafluff / ComfyJS

Comfiest Twitch Chat Library for JavaScript | NodeJS + Browser Support
MIT License
405 stars 44 forks source link

Cheermote parsing #32

Open SivakGames opened 3 years ago

SivakGames commented 3 years ago

First off, thanks for this. I've been able to get a lot of info. For regular messages, getting the emotes was a matter of parsing and using the messageEmotes found in the extra variable, however I couldn't find anything for cheermotes. Is there something I'm missing or is this currently not supported? I imagine it could be done similarly to the regular emotes. Thanks in advance.

Crazy-Unicooorn commented 2 years ago

For regular messages, getting the emotes was a matter of parsing and using the messageEmotes found in the extra variable.

I was able to retrieve information of the emote used in a message (emote IDs and place in the message), but I can't find out how to replace the emote text with the corresponding emote (I'm new to code).

I understand how to get the right image using Twitch emote links, and I was able to use them in messages, but I dont understand how I can replace the emote text code with that image.

If you've successfully done that already, I would love some help. And sorry if this isn't the right placd to ask, but on GitHub I cant find direct messages or other conversation options.