mirror of
				https://github.com/warengroup/eximiabots-radiox.git
				synced 2025-11-04 06:19:31 +00:00 
			
		
		
		
	Fixed nowplaying command
This commit is contained in:
		@@ -13,7 +13,11 @@ module.exports = {
 | 
			
		||||
            message.errorToGetPlaylist = client.messages.errorToGetPlaylist.replace("%client.config.supportGuild%", client.config.supportGuild);
 | 
			
		||||
            return interaction.reply(client.messageEmojis["error"] + message.errorToGetPlaylist);
 | 
			
		||||
        }
 | 
			
		||||
        const completed = (radio.connection.dispatcher.streamTime.toFixed(0));
 | 
			
		||||
 | 
			
		||||
        let date = new Date();
 | 
			
		||||
        radio.currentTime = date.getTime();
 | 
			
		||||
        radio.playTime = parseInt(radio.currentTime)-parseInt(radio.startTime);
 | 
			
		||||
        const completed = (radio.playTime);
 | 
			
		||||
 | 
			
		||||
        message.nowplayingDescription = client.messages.nowplayingDescription.replace("%radio.station.name%", radio.station.name);
 | 
			
		||||
        message.nowplayingDescription = message.nowplayingDescription.replace("%radio.station.owner%", radio.station.owner);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user