six
six
DIAdiscord.js - Imagine an app
Created by six on 3/10/2024 in #djs-voice
multiple event listeners
hmm that makes things alot harder
27 replies
DIAdiscord.js - Imagine an app
Created by six on 3/10/2024 in #djs-voice
multiple event listeners
yea it most likely does but that just seems like a design flaw bcs who would want that?
27 replies
DIAdiscord.js - Imagine an app
Created by six on 3/10/2024 in #djs-voice
multiple event listeners
for example i just started the bot i speak then stop speaking: end runs 2 times i speak then stop speaking: end runs 4 times ....
27 replies
DIAdiscord.js - Imagine an app
Created by six on 3/10/2024 in #djs-voice
multiple event listeners
but everytime i speak it doubles from last time
27 replies
DIAdiscord.js - Imagine an app
Created by six on 3/10/2024 in #djs-voice
multiple event listeners
oh huh ok but in that case everytime i stop speaking the end event should only run twice am i right?
27 replies
DIAdiscord.js - Imagine an app
Created by six on 3/10/2024 in #djs-voice
multiple event listeners
that does not make any sense..
27 replies
DIAdiscord.js - Imagine an app
Created by six on 3/10/2024 in #djs-voice
multiple event listeners
ok wait lemme you give my mental model of whats happening, the code is creating a object with the receiver.subscribe by passing a userId and a end param, this object is named opusStream and then im pipeing the data being recieved from this stream into a decoder, the decoder then emits data chunks whch i accumulate in the buffers array, then when the conditions for the end param are met the opusStream finally runs the callback function passed into the end event, and once this is executed somehow the end listener is doubled
27 replies
DIAdiscord.js - Imagine an app
Created by six on 3/10/2024 in #djs-voice
multiple event listeners
not sure abt it but isnt the object returned by receiver.subscribe a part of djs/voice
27 replies
DIAdiscord.js - Imagine an app
Created by six on 3/10/2024 in #djs-voice
multiple event listeners
already did doesnt work, but that suggestion doesnt even make sense to do cuz why would i want to remove the listeners when im not even the one creating a new listener?
27 replies
DIAdiscord.js - Imagine an app
Created by six on 3/10/2024 in #djs-voice
multiple event listeners
No description
27 replies
DIAdiscord.js - Imagine an app
Created by six on 2/20/2024 in #djs-voice
Opus stream
ah you said "OpusDecoder" so i was trying to find a function / class with that name
6 replies
DIAdiscord.js - Imagine an app
Created by six on 2/20/2024 in #djs-voice
Opus stream
which version of prism media are u referring to?
6 replies
DIAdiscord.js - Imagine an app
Created by six on 2/20/2024 in #djs-voice
Opus stream
opusdecoder is not a part of prism media
6 replies
DIAdiscord.js - Imagine an app
Created by six on 2/20/2024 in #djs-voice
Opus stream
but they dont have that-
6 replies
DIAdiscord.js - Imagine an app
Created by six on 1/2/2024 in #djs-voice
forcefully stopping player
and is there a way to pause / resume
6 replies
DIAdiscord.js - Imagine an app
Created by Box Bunny with Fan Noises on 7/9/2023 in #djs-voice
Trying to make a tts join command, getting invalid string format error
hey may i ask what tts package are you using
4 replies
DIAdiscord.js - Imagine an app
Created by six on 10/26/2023 in #djs-voice
Help with audio stream.
i will try that first thing in the morning
31 replies
DIAdiscord.js - Imagine an app
Created by six on 10/26/2023 in #djs-voice
Help with audio stream.
nope it still continued after I added the intent
31 replies
DIAdiscord.js - Imagine an app
Created by six on 10/26/2023 in #djs-voice
Help with audio stream.
im pretty sure it shouldn't cause any issues right..
31 replies
DIAdiscord.js - Imagine an app
Created by six on 10/26/2023 in #djs-voice
Help with audio stream.
the documentation about the discord/voice is very vague mostly so i was having a hard time understanding what the problem was when it kept saying object mode is not supported or something so i just simply decided to make it non object mode by using PassThrough and demuxProbe
31 replies