mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2024-12-23 03:13:20 +00:00
Update play.js
This commit is contained in:
parent
8b0e954ea0
commit
78155c56c2
@ -97,6 +97,7 @@ function play(guild, client, url) {
|
|||||||
const dispatcher = radio.connection
|
const dispatcher = radio.connection
|
||||||
.play(url, { bitrate: "auto", volume: 1 })
|
.play(url, { bitrate: "auto", volume: 1 })
|
||||||
.on("finish", () => {
|
.on("finish", () => {
|
||||||
|
console.log("Stream finished");
|
||||||
radio.voiceChannel.leave();
|
radio.voiceChannel.leave();
|
||||||
client.radio.delete(guild.id);
|
client.radio.delete(guild.id);
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user