Update play.js

This commit is contained in:
Matte 2020-04-21 22:34:38 +03:00 committed by GitHub
parent 8b0e954ea0
commit 78155c56c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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;