Skip to content

Commit b796233

Browse files
committed
YouTube Member Fix
1 parent 7a2d56a commit b796233

2 files changed

Lines changed: 30 additions & 27 deletions

File tree

chat.html

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/simple-notify.min.css">
1414
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/animate.min.css">
1515

16-
<link rel="stylesheet" href="css/chatrd.css?nocache=37">
16+
<link rel="stylesheet" href="css/chatrd.css?nocache=38">
1717
<link id="chatrd-skins" rel="stylesheet" href="css/skin-default.css">
1818
</head>
1919
<body>
@@ -170,42 +170,42 @@
170170
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/purify.min.js"></script>
171171
<script src="https://cdn.jsdelivr.net/npm/@streamerbot/[email protected]/dist/streamerbot-client.min.js"></script>
172172

173-
<script src="js/i18n-chatrd.js?nocache=37"></script>
173+
<script src="js/i18n-chatrd.js?nocache=38"></script>
174174

175-
<script src="js/speakerbot.js?nocache=37"></script>
176-
<script src="js/sb.js?nocache=37"></script>
175+
<script src="js/speakerbot.js?nocache=38"></script>
176+
<script src="js/sb.js?nocache=38"></script>
177177

178-
<script src="js/chatrd.js?nocache=37"></script>
178+
<script src="js/chatrd.js?nocache=38"></script>
179179

180-
<link href="js/modules/twitch/module.css?nocache=37" rel="stylesheet">
181-
<script src="js/modules/twitch/module.js?nocache=37"></script>
180+
<link href="js/modules/twitch/module.css?nocache=38" rel="stylesheet">
181+
<script src="js/modules/twitch/module.js?nocache=38"></script>
182182

183-
<link href="js/modules/youtube/module.css?nocache=37" rel="stylesheet">
184-
<script src="js/modules/youtube/module.js?nocache=37"></script>
183+
<link href="js/modules/youtube/module.css?nocache=38" rel="stylesheet">
184+
<script src="js/modules/youtube/module.js?nocache=38"></script>
185185

186-
<link href="js/modules/tiktok/module.css?nocache=37" rel="stylesheet">
187-
<script src="js/modules/tiktok/module.js?nocache=37"></script>
186+
<link href="js/modules/tiktok/module.css?nocache=38" rel="stylesheet">
187+
<script src="js/modules/tiktok/module.js?nocache=38"></script>
188188

189-
<link href="js/modules/kick/module.css?nocache=37" rel="stylesheet">
190-
<script src="js/modules/kick/module.js?nocache=37"></script>
189+
<link href="js/modules/kick/module.css?nocache=38" rel="stylesheet">
190+
<script src="js/modules/kick/module.js?nocache=38"></script>
191191

192-
<link href="js/modules/streamelements/module.css?nocache=37" rel="stylesheet">
193-
<script src="js/modules/streamelements/module.js?nocache=37"></script>
192+
<link href="js/modules/streamelements/module.css?nocache=38" rel="stylesheet">
193+
<script src="js/modules/streamelements/module.js?nocache=38"></script>
194194

195-
<link href="js/modules/streamlabs/module.css?nocache=37" rel="stylesheet">
196-
<script src="js/modules/streamlabs/module.js?nocache=37"></script>
195+
<link href="js/modules/streamlabs/module.css?nocache=38" rel="stylesheet">
196+
<script src="js/modules/streamlabs/module.js?nocache=38"></script>
197197

198-
<link href="js/modules/patreon/module.css?nocache=37" rel="stylesheet">
199-
<script src="js/modules/patreon/module.js?nocache=37"></script>
198+
<link href="js/modules/patreon/module.css?nocache=38" rel="stylesheet">
199+
<script src="js/modules/patreon/module.js?nocache=38"></script>
200200

201-
<link href="js/modules/tipeeestream/module.css?nocache=37" rel="stylesheet">
202-
<script src="js/modules/tipeeestream/module.js?nocache=37"></script>
201+
<link href="js/modules/tipeeestream/module.css?nocache=38" rel="stylesheet">
202+
<script src="js/modules/tipeeestream/module.js?nocache=38"></script>
203203

204-
<link href="js/modules/kofi/module.css?nocache=37" rel="stylesheet">
205-
<script src="js/modules/kofi/module.js?nocache=37"></script>
204+
<link href="js/modules/kofi/module.css?nocache=38" rel="stylesheet">
205+
<script src="js/modules/kofi/module.js?nocache=38"></script>
206206

207-
<link href="js/modules/fourthwall/module.css?nocache=37" rel="stylesheet">
208-
<script src="js/modules/fourthwall/module.js?nocache=37"></script>
207+
<link href="js/modules/fourthwall/module.css?nocache=38" rel="stylesheet">
208+
<script src="js/modules/fourthwall/module.js?nocache=38"></script>
209209

210210
</body>
211211
</html>

js/modules/youtube/module.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ async function youTubeNewSponsorMessage(data) {
311311
action.innerHTML = tRD('youtube.sponsor_action');
312312

313313
//var months = data.months > 1 ? 'months' : 'month';
314-
var months = formatSubMonthDuration(data.months);
314+
var months = formatSubMonthDuration( (data.months ?? 1) );
315315
value.innerHTML = `<strong>${months}</strong>`;
316316

317317
if (data.message) {
@@ -325,6 +325,8 @@ async function youTubeNewSponsorMessage(data) {
325325

326326

327327

328+
329+
328330
async function youTubeGiftBombMessage(data) {
329331

330332
if (showYouTubeMemberships == false || showYouTubeGiftMemberships == false) return;
@@ -671,4 +673,5 @@ async function getYouTubeBadges(data) {
671673
].filter(Boolean).join('');
672674

673675
return badgesHTML;
674-
}
676+
}
677+

0 commit comments

Comments
 (0)