nirewen
DIAdiscord.js - Imagine an app
•Created by nirewen on 9/17/2023 in #djs-voice
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?
3 replies