Skip to content

Fix Betterttv and update endpoint#156

Merged
Earu merged 7 commits into
Earu:masterfrom
Xerasin:fix-betterttv
Sep 8, 2025
Merged

Fix Betterttv and update endpoint#156
Earu merged 7 commits into
Earu:masterfrom
Xerasin:fix-betterttv

Conversation

@Xerasin

@Xerasin Xerasin commented Sep 8, 2025

Copy link
Copy Markdown
Contributor

Update the sprays.xerasin.com endpoint to the new legacy endpoint created for EasyChat. Also, replaced the API to get the emote list since it no longer functions.

file.CreateDir(FOLDER, "DATA")

local LOOKUP_TABLE_URL = "https://api.betterttv.net/2/emotes"
local LOOKUP_TABLE_URL = "https://api.betterttv.net/3/emotes/shared/top?limit=100"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

https://api.betterttv.net/3/cached/emotes/global is the correct API for BTTV global emotes.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Global is a tiny list that literally only has one animated emote, I did this because it's more inclusive to emotes people actually use. The top shared emotes are pretty much global, just not marked global. Most of the actual global emotes aren't emotes people use at all as it's mostly a legacy list. The top shared emotes better represent the emojis people actual use.

@Xerasin Xerasin requested a review from Cynosphere September 8, 2025 00:43
@Earu Earu merged commit 2cb5166 into Earu:master Sep 8, 2025
Earu pushed a commit that referenced this pull request Jul 4, 2026
* Fix betterttv

* Cache betterttv framerate

* Minor mistake

* Just remove attempt limit, endpoint is sometimes taking over a minute to process a gif when overloaded from the emote picker

* Double delay between requests

* Include global as well

* Wrong endpoint
Earu pushed a commit that referenced this pull request Jul 4, 2026
* Fix betterttv

* Cache betterttv framerate

* Minor mistake

* Just remove attempt limit, endpoint is sometimes taking over a minute to process a gif when overloaded from the emote picker

* Double delay between requests

* Include global as well

* Wrong endpoint
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants