Added statisticsUpdate to play.js when stream finished

This commit is contained in:
Christer Warén 2021-01-10 02:48:09 +02:00
parent d3f8aee812
commit 476f0877b9

View File

@ -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;