Skip to content

Commit

Permalink
proces/parse bits badge tier
Browse files Browse the repository at this point in the history
  • Loading branch information
BarryCarlyon committed May 8, 2024
1 parent 7a4b84b commit af3af37
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions eventsub/websockets/web/activity_feed/feed.js
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,31 @@ function runLineNotification({ payload }) {

break;

case 'bits_badge_tier':
// to consider...
let { bits_badge_tier } = event;
var { tier } = bits_badge_tier;

var r = activity_feed.insertRow(0);
r.setAttribute('title', system_message);
var cell = r.insertCell();
cell.textContent = dateTime();
var cell = r.insertCell();
cell.textContent = broadcaster_user_login;

var cell = r.insertCell();
cell.style.color = color;
cell.textContent = processName(chatter_user_name, chatter_user_login);

var cell = r.insertCell();
cell.textContent = 'Bits Tier';
var cell = r.insertCell();
cell.textContent = tier;
var cell = r.insertCell();
buildFromFragments(cell, fragments);

break;

case 'announcement':
// skip
break;
Expand Down

0 comments on commit af3af37

Please sign in to comment.