modularize ffz emote url list (ID change unpredictable)

This commit is contained in:
3zachm 2023-03-09 17:16:12 -08:00
parent c959726bf1
commit d9e16f0a2f

View file

@ -54,8 +54,10 @@ export default async function handler(
channel: (await getBTTVUser(redis, "56418014")).channelEmotes,
},
ffz: {
global: ffzGlobal.sets["3"].emoticons.concat(
ffzGlobal.sets["4330"].emoticons
// concat all emoticons in the ffzGlobal.sets json keys
global: Object.values(ffzGlobal.sets).reduce(
(acc: any, cur: any) => acc.concat(cur.emoticons),
[]
),
channel: (await getFFZEmoteSet(redis, "341402")).set.emoticons,
},