From d06f72dba704d4c26f76a014b7998083213cadcc Mon Sep 17 00:00:00 2001 From: Cohee Date: Wed, 14 Jun 2023 11:27:17 +0300 Subject: [PATCH] Fix duplicate slash command registration --- public/scripts/extensions/backgrounds/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/scripts/extensions/backgrounds/index.js b/public/scripts/extensions/backgrounds/index.js index d818b6437..be71ef3b3 100644 --- a/public/scripts/extensions/backgrounds/index.js +++ b/public/scripts/extensions/backgrounds/index.js @@ -164,7 +164,7 @@ $(document).ready(function () { addSettings(); setInterval(moduleWorker, UPDATE_INTERVAL); - registerSlashCommand('lock', onLockBackgroundClick, [], " – locks a background for the currently selected chat", true, true); - registerSlashCommand('unlock', onUnlockBackgroundClick, [], ' – unlocks a background for the currently selected chat', true, true); + registerSlashCommand('lockbg', onLockBackgroundClick, ['bglock'], " – locks a background for the currently selected chat", true, true); + registerSlashCommand('unlockbg', onUnlockBackgroundClick, ['bgunlock'], ' – unlocks a background for the currently selected chat', true, true); registerSlashCommand('autobg', autoBackgroundCommand, ['bgauto'], ' – automatically changes the background based on the chat context using the AI request prompt', true, true); });