mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2024-12-23 01:13:17 +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 })
|
.play(url, { bitrate: "auto", volume: 1 })
|
||||||
.on("finish", () => {
|
.on("finish", () => {
|
||||||
console.log("Stream finished");
|
console.log("Stream finished");
|
||||||
|
client.funcs.statisticsUpdate(client, guild, radio);
|
||||||
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