From 4ba582295b183358526609235fa2b6ed8af9bfba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christer=20War=C3=A9n?= Date: Wed, 25 Aug 2021 23:05:06 +0300 Subject: [PATCH] Removed second variable from msToTime in multiple files --- src/client/commands/nowplaying.js | 2 +- src/client/commands/statistics.js | 2 +- src/client/commands/status.js | 2 +- src/client/messages.js | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/client/commands/nowplaying.js b/src/client/commands/nowplaying.js index 15ac16d..4f5c4f9 100644 --- a/src/client/commands/nowplaying.js +++ b/src/client/commands/nowplaying.js @@ -22,7 +22,7 @@ module.exports = { message.nowplayingDescription = client.messages.nowplayingDescription.replace("%radio.station.name%", radio.station.name); message.nowplayingDescription = message.nowplayingDescription.replace("%radio.station.owner%", radio.station.owner); - message.nowplayingDescription = message.nowplayingDescription.replace("%client.funcs.msToTime(completed, \"hh:mm:ss\")%", client.funcs.msToTime(completed, "hh:mm:ss")); + message.nowplayingDescription = message.nowplayingDescription.replace("%client.funcs.msToTime(completed)%", client.funcs.msToTime(completed)); const embed = new Discord.MessageEmbed() .setTitle(client.messages.nowplayingTitle) diff --git a/src/client/commands/statistics.js b/src/client/commands/statistics.js index 7bd3709..9d42252 100644 --- a/src/client/commands/statistics.js +++ b/src/client/commands/statistics.js @@ -27,7 +27,7 @@ module.exports = { Object.keys(stations).forEach(function(station) { if(currentGuild.statistics[stations[station].name] && currentGuild.statistics[stations[station].name].time && parseInt(currentGuild.statistics[stations[station].name].time) > 0 && currentGuild.statistics[stations[station].name].used && parseInt(currentGuild.statistics[stations[station].name].used) > 0){ statistics += `**${parseInt(station) + 1}** ` + stations[station].name + " \n"; - statistics += "Time: " + client.funcs.msToTime(currentGuild.statistics[stations[station].name].time, "dd:hh:mm:ss") + "\n"; + statistics += "Time: " + client.funcs.msToTime(currentGuild.statistics[stations[station].name].time) + "\n"; statistics += "Used: " + currentGuild.statistics[stations[station].name].used + "\n"; } }); diff --git a/src/client/commands/status.js b/src/client/commands/status.js index 8a1d381..26bc0c8 100644 --- a/src/client/commands/status.js +++ b/src/client/commands/status.js @@ -14,7 +14,7 @@ module.exports = { let message = {}; message.statusTitle = client.messages.statusTitle.replace("%client.user.username%", client.user.username); - let uptime = client.funcs.msToTime(client.uptime, "dd:hh:mm:ss"); + let uptime = client.funcs.msToTime(client.uptime); const embed = new Discord.MessageEmbed() .setTitle(message.statusTitle) diff --git a/src/client/messages.js b/src/client/messages.js index 1e9493e..db7350c 100644 --- a/src/client/messages.js +++ b/src/client/messages.js @@ -13,7 +13,7 @@ module.exports = { inviteTitle: "Invite %client.user.username% to your Discord server!", listTitle: "Radio Stations", nowplayingTitle: "Now Playing", - nowplayingDescription: "**%radio.station.name%** \n Owner: %radio.station.owner% \n %client.funcs.msToTime(completed, \"hh:mm:ss\")%", + nowplayingDescription: "**%radio.station.name%** \n Owner: %radio.station.owner% \n %client.funcs.msToTime(completed)%", noVoiceChannel: "You need to be in a voice channel to play radio!", noQuery: "You need to use a number or search for a supported station!", noPermsConnect: "I cannot connect to your voice channel.",