Update startTime when changing stations in play.js

This commit is contained in:
Christer Warén 2021-09-03 01:24:21 +03:00
parent 179914a2f2
commit 7d4fb50351

View File

@ -137,8 +137,10 @@ module.exports = {
client.funcs.statisticsUpdate(client, interaction.guild, radio);
radio.audioPlayer.stop();
let date = new Date();
radio.station = station;
radio.textChannel = interaction.channel;
radio.startTime = date.getTime();
play(interaction, interaction.guild, client, url, Discord);
return;