disable remote sounds by default
This commit is contained in:
parent
e1293b6cb3
commit
d6eb1601e9
2 changed files with 3 additions and 0 deletions
|
|
@ -85,6 +85,7 @@ export const defaultOptions = {
|
|||
} as any,
|
||||
preferLoadReadonly: false,
|
||||
experimentalClientSelfReload: true,
|
||||
remoteSoundsSupport: false,
|
||||
remoteSoundsLoadTimeout: 500,
|
||||
disableLoadPrompts: false,
|
||||
guestUsername: 'guest',
|
||||
|
|
|
|||
|
|
@ -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 }
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue