Create a "radio"

I'm trying to create a radio, or soundboard of sorts. A place where I can select the songs or sounds I want, and have it be played by the bot. I'm probably overthinking this or structuring it wrong. But my idea would be to have a constant stream the bot is playing, so I can append audio buffers to it (from a folder). I'd probably be better off with creating a new player every time, but I want to merge tracks together, have it played on top of one another. I already have a Readable stream the bot can play, but when I append a single track to it, it thinks the Readable is finished playing and the bot goes idle (I can't play the resource again). Essentially it should behave like a radio. I even tried appending silence to it so it's not "empty". I don't know how to approach this Is there a similar solution out there? How can I achieve this?
2 Replies
d.js toolkit
d.js toolkit15mo ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button!
Nounejm
Nounejm15mo ago
its hard to help without the actual code
Want results from more Discord servers?
Add your server