dotabod / frontend

Dashboard, OBS overlay, settings, homepage and more for Dotabod
https://dotabod.com
GNU Affero General Public License v3.0
25 stars 8 forks source link

show emotes enabled live #148

Open DatGuy1 opened 1 year ago

DatGuy1 commented 1 year ago

Meaning no emotes that /could/ be enabled.

Geczy commented 1 year ago

can you explain what you mean? im not understanding

DatGuy1 commented 1 year ago

Such as https://github.com/dotabod/backend/blob/master/packages/dota/src/dota/GSIHandler.ts#L881-L882. 'Happi' isn't enabled everywhere. You should try to stick to BTTV/FFZ/Twitch global emotes.

Geczy commented 1 year ago

got it. slightly related https://github.com/dotabod/backend/issues/226

https://github.com/SevenTV/EventAPI#subscribe-35

https://betterttv.com/developers/websocket

looks like both extensions allow subscribing to emotes being added to a channel, so this can be technically possible after-all

Geczy commented 1 year ago

wondering now if i should join these websocket channels from the streamer's overlay in the frontend repo, so as not to congest my backend sockets. then to make an api request to my server when there's an emote update. kind of like a webhook

i think that can make sense. especially since there's an emote part of the setup process in dotabod.com frontend. i can use the same webhook logic to update them instantly, rather than wait for their cache to update as it is now. which causes their current emote sets to be delayed or shown as 'inactive' even though they just added it

Geczy commented 1 month ago

gonna reopen this so we can hide emotes in chat where they are not enabled