mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2024-11-10 05:00:18 +00:00
Update startTime when changing stations in play.js
This commit is contained in:
parent
179914a2f2
commit
7d4fb50351
@ -137,8 +137,10 @@ module.exports = {
|
|||||||
client.funcs.statisticsUpdate(client, interaction.guild, radio);
|
client.funcs.statisticsUpdate(client, interaction.guild, radio);
|
||||||
radio.audioPlayer.stop();
|
radio.audioPlayer.stop();
|
||||||
|
|
||||||
|
let date = new Date();
|
||||||
radio.station = station;
|
radio.station = station;
|
||||||
radio.textChannel = interaction.channel;
|
radio.textChannel = interaction.channel;
|
||||||
|
radio.startTime = date.getTime();
|
||||||
play(interaction, interaction.guild, client, url, Discord);
|
play(interaction, interaction.guild, client, url, Discord);
|
||||||
|
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user