From 2d6dcf2cdadd493b95dd0f4ab20602b28abc0691 Mon Sep 17 00:00:00 2001 From: CKY- Date: Thu, 28 Nov 2024 05:21:11 -0700 Subject: [PATCH 1/3] fix: command cooldown --- .../chat/commands/command-cooldown-manager.ts | 24 ++++++++----------- 1 file changed, 10 insertions(+), 14 deletions(-) diff --git a/src/backend/chat/commands/command-cooldown-manager.ts b/src/backend/chat/commands/command-cooldown-manager.ts index 1ba82d247..ce87369ad 100644 --- a/src/backend/chat/commands/command-cooldown-manager.ts +++ b/src/backend/chat/commands/command-cooldown-manager.ts @@ -112,13 +112,11 @@ class CommandCooldownManager { ); if (cooldown.global > 0) { - if (this._cooldownCache.get(globalCacheKey) == null) { - this._cooldownCache.set( - globalCacheKey, - DateTime.utc().plus({ seconds: cooldown.global }), - cooldown.global - ); - } + this._cooldownCache.set( + globalCacheKey, + DateTime.utc().plus({ seconds: cooldown.global }), + cooldown.global + ); } if (cooldown.user > 0) { this._cooldownCache.set( @@ -147,13 +145,11 @@ class CommandCooldownManager { ); if (config.cooldown.global > 0) { - if (this._cooldownCache.get(globalCacheKey) == null) { - this._cooldownCache.set( - globalCacheKey, - DateTime.utc().plus({ seconds: config.cooldown.global }), - config.cooldown.global - ); - } + this._cooldownCache.set( + globalCacheKey, + DateTime.utc().plus({ seconds: config.cooldown.global }), + config.cooldown.global + ); } if (config.cooldown.user > 0 && config.username != null) { this._cooldownCache.set( From be9e9f39fb56ab7d1f5390d6f81076d60ee2cc99 Mon Sep 17 00:00:00 2001 From: CKY- Date: Thu, 5 Dec 2024 10:12:16 -0700 Subject: [PATCH 2/3] fix:vars menu in obs-change-scene effect --- .../builtin/obs/effects/change-scene-effect-type.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backend/integrations/builtin/obs/effects/change-scene-effect-type.ts b/src/backend/integrations/builtin/obs/effects/change-scene-effect-type.ts index 61a030f72..39a4f1e41 100644 --- a/src/backend/integrations/builtin/obs/effects/change-scene-effect-type.ts +++ b/src/backend/integrations/builtin/obs/effects/change-scene-effect-type.ts @@ -27,7 +27,7 @@ export const ChangeSceneEffectType: EffectType<{
- +
`, @@ -52,7 +52,7 @@ export const ChangeSceneEffectType: EffectType<{ (scenes: string[]) => { $scope.scenes = []; if (scenes != null) { - scenes.forEach(scene => { + scenes.forEach((scene) => { $scope.scenes.push({name: scene, custom: false}); }); } From aeb73f5172b61c0674af753eeeb266d4382a8806 Mon Sep 17 00:00:00 2001 From: CKY- Date: Thu, 5 Dec 2024 10:29:53 -0700 Subject: [PATCH 3/3] fix:rotation variable menu --- .../app/directives/effect-option-settings/eosOverlayRotation.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gui/app/directives/effect-option-settings/eosOverlayRotation.js b/src/gui/app/directives/effect-option-settings/eosOverlayRotation.js index 5cdcce7f3..e1b0a2f31 100644 --- a/src/gui/app/directives/effect-option-settings/eosOverlayRotation.js +++ b/src/gui/app/directives/effect-option-settings/eosOverlayRotation.js @@ -17,6 +17,7 @@ model="$ctrl.effect.rotation" placeholder-text="Enter rotation" data-type="number" + menu-position="under" />