Update play.js

This commit is contained in:
Matte authored and GitHub committed 2020-04-21 22:34:38 +03:00
1 parent 8b0e954ea0
commit 78155c56c2
1 file changed
+1
+1
View File
@@ -97,6 +97,7 @@ function play(guild, client, url) {
const dispatcher = radio.connection
.play(url, { bitrate: "auto", volume: 1 })
.on("finish", () => {
console.log("Stream finished");
radio.voiceChannel.leave();
client.radio.delete(guild.id);
return;