Auto destroy radio

const Dotwood = require("dotwood.js");

client.on('ready', async () => {
    const radio = new Dotwood.radioClient({
        radio: "https://21253.live.streamtheworld.com/RADIO538.mp3", // Radio Steam URL
        channel: "ID", // Default voice channel id
        client: client // Your bot client
    })

    radio.play();
    
    setTimeout(() => {
        radio.destroy();
    }, 5000)
})

Last updated