From caa78d948bf463e93d71e2ac4f180761cdd4dd14 Mon Sep 17 00:00:00 2001 From: SputNikPlop <100245448+SputNikPlop@users.noreply.github.com> Date: Sun, 5 Nov 2023 15:12:32 -0800 Subject: [PATCH 1/2] fix: broken 7tv emotes --- functions/src/emotes.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/functions/src/emotes.ts b/functions/src/emotes.ts index 4472e05a9..bea1c9c6b 100644 --- a/functions/src/emotes.ts +++ b/functions/src/emotes.ts @@ -197,7 +197,7 @@ export async function getFFZEmotes(channelId: string): Promise { } export async function get7TVEmotes(channelId: string): Promise { - const global = fetch("https://api.7tv.app/v2/emotes/global") + const global = fetch("https://7tv.io/v3/emote-sets/global") .then((res) => res.json() as any) .then((json) => json.map((emote: any) => ({ @@ -209,7 +209,7 @@ export async function get7TVEmotes(channelId: string): Promise { })) ) .catch(() => []); - const local = fetch(`https://api.7tv.app/v2/users/${channelId}/emotes`) + const local = fetch(`https://7tv.io/v3/users/${channelId}/emotes`) .then((res) => res.json() as any) .then((json) => json.map((emote: any) => ({ From bd9ff348f641897c0ea2499b8972a7fc2f5f1107 Mon Sep 17 00:00:00 2001 From: SputNikPlop <100245448+SputNikPlop@users.noreply.github.com> Date: Sun, 5 Nov 2023 15:35:30 -0800 Subject: [PATCH 2/2] fix: pull user emotes --- functions/src/emotes.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/src/emotes.ts b/functions/src/emotes.ts index bea1c9c6b..750370343 100644 --- a/functions/src/emotes.ts +++ b/functions/src/emotes.ts @@ -209,7 +209,7 @@ export async function get7TVEmotes(channelId: string): Promise { })) ) .catch(() => []); - const local = fetch(`https://7tv.io/v3/users/${channelId}/emotes`) + const local = fetch(`https://7tv.io/v3/users/twitch/${channelId}`) .then((res) => res.json() as any) .then((json) => json.map((emote: any) => ({