Skip to content

Commit

Permalink
Hardcode tweak to receive donation total from MQ for Tiltify
Browse files Browse the repository at this point in the history
  • Loading branch information
zoton2 committed Feb 17, 2024
1 parent 3403cb3 commit 8d02bca
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/extension/tracker/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,12 @@ async function updateDonationTotalFromAPI(init = false): Promise<void> {
}

// Triggered when a donation total is updated in our tracker.
// THIS WORKS EVEN IF TRACKER CONFIG IS DISABLED! WHICH IS GOOD FOR TILTIFY!
mq.evt.on('donationTotalUpdated', (data) => {
let total = 0;
for (const event of eventInfo) {
if (data.event === event.short) {
// HARDCODED FOR NOW!
if (data.event === 'esaw2024') {
event.total = data.new_total;
}
total += event.total;
Expand Down

0 comments on commit 8d02bca

Please sign in to comment.