mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2024-11-09 23:40:18 +00:00
Added statisticsUpdate to play.js when stream finished
This commit is contained in:
parent
d3f8aee812
commit
476f0877b9
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user