mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2026-10-29 17:35:00 +00:00
Added statisticsUpdate to play.js when stream finished
This commit is contained in:
1 parent
d3f8aee812
commit
476f0877b9
1 file changed
+1
@@ -98,6 +98,7 @@ function play(guild, client, url) {
|
||||
.play(url, { bitrate: "auto", volume: 1 })
|
||||
.on("finish", () => {
|
||||
console.log("Stream finished");
|
||||
client.funcs.statisticsUpdate(client, guild, radio);
|
||||
radio.voiceChannel.leave();
|
||||
client.radio.delete(guild.id);
|
||||
return;
|
||||
|
||||
Reference in new issue
Block a user