From 476f0877b94cae715637876dec099af329788251 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christer=20War=C3=A9n?= Date: Sun, 10 Jan 2021 02:48:09 +0200 Subject: [PATCH] Added statisticsUpdate to play.js when stream finished --- client/commands/play.js | 1 + 1 file changed, 1 insertion(+) diff --git a/client/commands/play.js b/client/commands/play.js index 68eb9fa..ec06cf6 100644 --- a/client/commands/play.js +++ b/client/commands/play.js @@ -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;