mirror of
https://github.com/musix-org/musix-oss
synced 2024-11-10 05:10:17 +00:00
msToTime format
This commit is contained in:
parent
c1bbdf9532
commit
e9a83e2f87
@ -22,7 +22,7 @@ module.exports = {
|
||||
const thumbnail = getThumb(serverQueue.songs[0].url);
|
||||
const embed = new Discord.MessageEmbed()
|
||||
.setTitle("__Now playing__")
|
||||
.setDescription(`<a:aNotes:674602408105476106>**Now playing:** ${serverQueue.songs[0].title}\n${array.join('')} | \`${client.funcs.msToTime(completed)} / ${client.funcs.msToTime(songtime)}\``)
|
||||
.setDescription(`<a:aNotes:674602408105476106>**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)
|
||||
|
@ -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('<a:loading:674284196700618783> Pinging...').then(m => {
|
||||
const latency = m.createdTimestamp - msg.createdTimestamp;
|
||||
|
@ -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(`<a:aNotes:674602408105476106> 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);
|
||||
|
Loading…
Reference in New Issue
Block a user