1
- import { Bids , DonationTotalMilestones , Omnibar , Prizes } from '@esa-layouts/types/schemas' ;
1
+ import { Bids , DonationTotalMilestones , Prizes } from '@esa-layouts/types/schemas' ;
2
2
import clone from 'clone' ;
3
3
import { orderBy } from 'lodash' ;
4
4
import { join } from 'path' ;
@@ -8,18 +8,11 @@ import { v4 as uuid } from 'uuid';
8
8
import { get as nodecg } from './util/nodecg' ;
9
9
import obs from './util/obs' ;
10
10
import { mq } from './util/rabbitmq' ;
11
- import { assetsDonationAlertAssets , bids , commentatorsNew , donationAlerts , donationReaderNew , donationTotalMilestones , omnibar , prizes } from './util/replicants' ;
11
+ import { assetsDonationAlertAssets , bids , donationAlerts , donationTotalMilestones , omnibar , prizes } from './util/replicants' ;
12
12
import { sc } from './util/speedcontrol' ;
13
13
14
14
const config = nodecg ( ) . bundleConfig ;
15
15
16
- // Temporary storage used for mini credits subscriptions/cheers/alerts while they are playing.
17
- let tempMiniCreditsStorage : Omnibar [ 'miniCredits' ] = {
18
- runSubs : [ ] ,
19
- runCheers : [ ] ,
20
- runDonations : [ ] ,
21
- } ;
22
-
23
16
// Filter helper used below.
24
17
function filterUpcomingRuns ( run : RunData ) : boolean {
25
18
return ! run . scheduledS || run . scheduledS >= ( Date . now ( ) / 1000 ) ;
@@ -264,10 +257,6 @@ omnibar.on('change', (newVal, oldVal) => {
264
257
265
258
// Listens for messages from the graphic to change to the next message.
266
259
nodecg ( ) . listenFor ( 'omnibarShowNext' , ( data , ack ) => {
267
- // If omnibar was just showing mini credits and ended successfully, erase temp storage.
268
- if ( omnibar . value . current ?. type === 'MiniCredits' ) {
269
- tempMiniCreditsStorage = { runSubs : [ ] , runCheers : [ ] , runDonations : [ ] } ;
270
- }
271
260
showNext ( ) ;
272
261
if ( ack && ! ack ?. handled ) ack ( ) ;
273
262
} ) ;
0 commit comments