From ec230d3f8111ed951872505db08f4db5160706a1 Mon Sep 17 00:00:00 2001 From: Michal Orlik Date: Mon, 20 Jun 2022 10:57:58 +0200 Subject: [PATCH] fix(overlays): add showBadges to cchat settings --- src/registries/overlays.ts | 1 + src/services/twitch/calls/getAllStreamTags.ts | 2 +- src/services/twitch/calls/getCurrentStreamTags.ts | 3 ++- src/services/twitch/calls/getTopClips.ts | 2 +- src/services/twitch/pubsub.ts | 2 +- 5 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/registries/overlays.ts b/src/registries/overlays.ts index 41203941de7..f62d61b8571 100644 --- a/src/registries/overlays.ts +++ b/src/registries/overlays.ts @@ -237,6 +237,7 @@ const values = { type: 'vertical', hideMessageAfter: 600000, showTimestamp: true, + showBadges: true, font: { family: 'PT Sans', size: 20, diff --git a/src/services/twitch/calls/getAllStreamTags.ts b/src/services/twitch/calls/getAllStreamTags.ts index 730e6d80861..3457e663504 100644 --- a/src/services/twitch/calls/getAllStreamTags.ts +++ b/src/services/twitch/calls/getAllStreamTags.ts @@ -1,9 +1,9 @@ +import { rawDataSymbol } from '@twurple/common'; import { getRepository, IsNull } from 'typeorm'; import client from '../api/client'; import { refresh } from '../token/refresh.js'; -import { rawDataSymbol } from '~/../node_modules/@twurple/common/lib'; import { TwitchTag, TwitchTagLocalizationDescription, TwitchTagLocalizationName } from '~/database/entity/twitch'; import { getFunctionName } from '~/helpers/getFunctionName'; import { error, warning } from '~/helpers/log'; diff --git a/src/services/twitch/calls/getCurrentStreamTags.ts b/src/services/twitch/calls/getCurrentStreamTags.ts index 441dea83519..d9db29c02c1 100644 --- a/src/services/twitch/calls/getCurrentStreamTags.ts +++ b/src/services/twitch/calls/getCurrentStreamTags.ts @@ -1,4 +1,5 @@ -import { rawDataSymbol } from '../../../../node_modules/@twurple/common/lib'; +import { rawDataSymbol } from '@twurple/common'; + import client from '../api/client'; import { refresh } from '../token/refresh.js'; diff --git a/src/services/twitch/calls/getTopClips.ts b/src/services/twitch/calls/getTopClips.ts index 2ab9e451dfa..0431e331418 100644 --- a/src/services/twitch/calls/getTopClips.ts +++ b/src/services/twitch/calls/getTopClips.ts @@ -1,7 +1,7 @@ import { shuffle } from '@sogebot/ui-helpers/array'; import { DAY } from '@sogebot/ui-helpers/constants'; +import { HelixClip } from '@twurple/api'; -import { HelixClip } from '../../../../node_modules/@twurple/api/lib'; import client from '../api/client'; import { refresh } from '../token/refresh.js'; import { getGameNameFromId } from './getGameNameFromId'; diff --git a/src/services/twitch/pubsub.ts b/src/services/twitch/pubsub.ts index e76eb682087..8fbd29b2f55 100644 --- a/src/services/twitch/pubsub.ts +++ b/src/services/twitch/pubsub.ts @@ -1,11 +1,11 @@ import { setInterval } from 'timers'; import { MINUTE } from '@sogebot/ui-helpers/constants'; +import { rawDataSymbol } from '@twurple/common'; import { PubSubClient } from '@twurple/pubsub'; import { CustomAuthProvider } from './token/CustomAuthProvider.js'; -import { rawDataSymbol } from '~/../node_modules/@twurple/common/lib'; import { isStreamOnline } from '~/helpers/api'; import { eventEmitter } from '~/helpers/events'; import {