From 75934eeeca0ec9e44f735b2a9a40e84ce3c13d72 Mon Sep 17 00:00:00 2001 From: Killa Fish <61081555+Fiszh@users.noreply.github.com> Date: Mon, 4 Nov 2024 22:56:00 +0100 Subject: [PATCH] BTTV zero-width emotes --- src/channel/index.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/channel/index.js b/src/channel/index.js index ca08536..b7e547c 100644 --- a/src/channel/index.js +++ b/src/channel/index.js @@ -120,6 +120,10 @@ let BTTVWebsocket; let BTTVGlobalEmoteData = []; let BTTVEmoteData = []; +const BTTVZeroWidth = ['cvHazmat', 'cvMask']; + +//OTHER + let allEmoteData = []; //ADDITIONAL @@ -2376,7 +2380,8 @@ async function fetchBTTVGlobalEmoteData() { emote_link: `https://betterttv.com/emotes/${emote.id}`, original_name: emote?.codeOriginal, creator: null, - site: 'Global BTTV' + site: 'Global BTTV', + flags: BTTVZeroWidth.includes(emote.code) ? 256 : undefined })); console.log(FgRed + 'Success in getting Global BetterTTV emotes!' + FgWhite) } catch (error) {