Skip to content

Commit d6eb160

Browse files
committed
disable remote sounds by default
1 parent e1293b6 commit d6eb160

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/defaultOptions.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ export const defaultOptions = {
8585
} as any,
8686
preferLoadReadonly: false,
8787
experimentalClientSelfReload: true,
88+
remoteSoundsSupport: false,
8889
remoteSoundsLoadTimeout: 500,
8990
disableLoadPrompts: false,
9091
guestUsername: 'guest',

src/sounds/customSoundSystem.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
import { loadOrPlaySound, stopAllSounds, stopSound } from '../basicSounds'
2+
import { options } from '../optionsStorage'
23

34
const customSoundSystem = () => {
45
bot._client.on('named_sound_effect', packet => {
6+
if (!options.remoteSoundsSupport) return
57
let { soundName } = packet
68
let metadata = {} as { loadTimeout?: number, loop?: boolean }
79

0 commit comments

Comments
 (0)