disable remote sounds by default

This commit is contained in:
Vitaly Turovsky 2025-08-16 09:16:29 +03:00
commit d6eb1601e9
2 changed files with 3 additions and 0 deletions

View file

@ -85,6 +85,7 @@ export const defaultOptions = {
} as any,
preferLoadReadonly: false,
experimentalClientSelfReload: true,
remoteSoundsSupport: false,
remoteSoundsLoadTimeout: 500,
disableLoadPrompts: false,
guestUsername: 'guest',

View file

@ -1,7 +1,9 @@
import { loadOrPlaySound, stopAllSounds, stopSound } from '../basicSounds'
import { options } from '../optionsStorage'
const customSoundSystem = () => {
bot._client.on('named_sound_effect', packet => {
if (!options.remoteSoundsSupport) return
let { soundName } = packet
let metadata = {} as { loadTimeout?: number, loop?: boolean }