Skip to content

Commit

Permalink
Merge pull request #2752 from crowbartools/v5
Browse files Browse the repository at this point in the history
v5.63.2
  • Loading branch information
ebiggz authored Aug 27, 2024
2 parents 203523b + 48c6877 commit 98a7760
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 18 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "firebotv5",
"version": "5.63.1",
"version": "5.63.2",
"description": "Powerful all-in-one bot for Twitch streamers.",
"main": "build/main.js",
"scripts": {
Expand Down
8 changes: 4 additions & 4 deletions src/backend/chat/chat-listeners/twitch-chat-listeners.js
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ exports.setupChatListeners = (streamerChatClient, botChatClient) => {
} catch (error) {
logger.error("Failed to parse resub message", error);
}
viewerDatabase.calculateAutoRanksByName(subInfo.userId);
viewerDatabase.calculateAutoRanks(subInfo.userId);
});

streamerChatClient.onCommunitySub((_channel, _user, subInfo) => {
Expand All @@ -225,7 +225,7 @@ exports.setupChatListeners = (streamerChatClient, botChatClient) => {
subInfo.months,
subInfo.streak ?? 1
);
viewerDatabase.calculateAutoRanksByName(subInfo.userId);
viewerDatabase.calculateAutoRanks(subInfo.userId);
});

streamerChatClient.onGiftPaidUpgrade((_channel, _user, subInfo, msg) => {
Expand All @@ -236,7 +236,7 @@ exports.setupChatListeners = (streamerChatClient, botChatClient) => {
subInfo.gifterDisplayName,
subInfo.plan
);
viewerDatabase.calculateAutoRanksByName(subInfo.userId);
viewerDatabase.calculateAutoRanks(subInfo.userId);
});

streamerChatClient.onPrimePaidUpgrade((_channel, _user, subInfo, msg) => {
Expand All @@ -246,6 +246,6 @@ exports.setupChatListeners = (streamerChatClient, botChatClient) => {
subInfo.displayName,
subInfo.plan
);
viewerDatabase.calculateAutoRanksByName(subInfo.userId);
viewerDatabase.calculateAutoRanks(subInfo.userId);
});
};
3 changes: 2 additions & 1 deletion src/backend/common/user-access.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
"use strict";

const viewerDatabase = require("../viewers/viewer-database");
const accountAccess = require("../common/account-access");
const NodeCache = require('node-cache');
const twitchApi = require("../twitch-api/api");
Expand Down Expand Up @@ -57,6 +56,8 @@ async function userFollowsChannels(username, channelNames, durationInSeconds = 0

async function getUserDetails(userId) {

const viewerDatabase = require("../viewers/viewer-database");

await viewerDatabase.calculateAutoRanks(userId);

const firebotUserData = await viewerDatabase.getViewerById(userId);
Expand Down
13 changes: 2 additions & 11 deletions src/backend/integrations/builtin/obs/obs-remote.ts
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,8 @@ async function setupRemoteListeners() {
);
});

obs.on("SceneTransitionStarted", ({ transitionName }) => {
obs.on("SceneTransitionStarted", async ({ transitionName }) => {
programSceneName = (await obs.call("GetCurrentProgramScene"))?.sceneName || "";
eventManager?.triggerEvent(
OBS_EVENT_SOURCE_ID,
OBS_SCENE_TRANSITION_STARTED_EVENT_ID,
Expand All @@ -194,16 +195,6 @@ async function setupRemoteListeners() {
);
});

obs.on("CurrentProgramSceneChanged", ({ sceneName }) => {
eventManager?.triggerEvent(
OBS_EVENT_SOURCE_ID,
OBS_CURRENT_PROGRAM_SCENE_CHANGED_EVENT_ID,
{
sceneName
}
);
});

obs.on("CurrentSceneTransitionChanged", ({ transitionName }) => {
eventManager?.triggerEvent(
OBS_EVENT_SOURCE_ID,
Expand Down
2 changes: 1 addition & 1 deletion src/gui/app/directives/misc/replaceVariableMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@
let wrapper = parent;
if (!parent.hasClass("input-group")) {
wrapper = angular.element(`
<div style="position: relative;display: table; width: 100%;"></div>`
<div style="position: relative;"></div>`
);
const compiled = $compile(wrapper)(scope);
element.wrap(compiled);
Expand Down

0 comments on commit 98a7760

Please sign in to comment.