From e9a83e2f87298f160ead38fa51e7b1c3c4c34775 Mon Sep 17 00:00:00 2001 From: MatteZ02 <47610069+MatteZ02@users.noreply.github.com> Date: Mon, 10 Feb 2020 21:07:09 +0200 Subject: [PATCH] msToTime format --- src/commands/nowplaying.js | 2 +- src/commands/status.js | 2 +- src/struct/funcs/play.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/commands/nowplaying.js b/src/commands/nowplaying.js index a9e1560a..a8839327 100644 --- a/src/commands/nowplaying.js +++ b/src/commands/nowplaying.js @@ -22,7 +22,7 @@ module.exports = { const thumbnail = getThumb(serverQueue.songs[0].url); const embed = new Discord.MessageEmbed() .setTitle("__Now playing__") - .setDescription(`**Now playing:** ${serverQueue.songs[0].title}\n${array.join('')} | \`${client.funcs.msToTime(completed)} / ${client.funcs.msToTime(songtime)}\``) + .setDescription(`**Now playing:** ${serverQueue.songs[0].title}\n${array.join('')} | \`${client.funcs.msToTime(completed, "hh:mm:ss")} / ${client.funcs.msToTime(songtime, "hh:mm:ss")}\``) .setFooter(`Queued by ${serverQueue.songs[0].author.tag}`) .setURL(serverQueue.songs[0].url) .setThumbnail(thumbnail._rejectionHandler0) diff --git a/src/commands/status.js b/src/commands/status.js index bee27b1b..423ee86f 100644 --- a/src/commands/status.js +++ b/src/commands/status.js @@ -7,7 +7,7 @@ module.exports = { permission: 'none', category: 'info', execute(msg, args, client, Discord, prefix) { - const uptime = client.funcs.msToTime(client.uptime); + const uptime = client.funcs.msToTime(client.uptime, "dd:hh:mm:ss"); const ping = Math.floor(client.ping * 10) / 10; msg.channel.send(' Pinging...').then(m => { const latency = m.createdTimestamp - msg.createdTimestamp; diff --git a/src/struct/funcs/play.js b/src/struct/funcs/play.js index 718b9c8f..84726e7d 100644 --- a/src/struct/funcs/play.js +++ b/src/struct/funcs/play.js @@ -31,7 +31,7 @@ module.exports = async function (guild, song, client, seek, play) { const thumbnail = getThumb(serverQueue.songs[0].url); const embed = new Discord.MessageEmbed() .setTitle(` Start playing: **${song.title}**`) - .setDescription(`Song duration: \`${client.funcs.msToTime(songtime)}\``) + .setDescription(`Song duration: \`${client.funcs.msToTime(songtime, "hh:mm:ss")}\``) .setThumbnail(thumbnail._rejectionHandler0) .setColor(client.config.embedColor) serverQueue.textChannel.send(embed);