Closed rartigues closed 3 years ago
Set a simple timeout then before destroying the queue, and these are suggestions, please post them in discussions, not in issues. Here is an instance of how u can do it
setTimeout(() => {
if (player.paused || player.playing || player.queue.length > 0) return;
player.destroy();
},60*1000//time in milliseconds ;-; so this is like 1 minute
);```
Sorry for placing this in the issues. Last thing, where can I edit this code in?
structures/DiscordMusicBot.js
I'm hosting the bot locally but I'm wondering if is it possible to make the bot leave after a certain time after finishing playing. I know about the 24/7 option but I want the bot after a minute or two after completing the last song in the queue.