From 62723c6c715d686761d178fd40667ab3e4156a94 Mon Sep 17 00:00:00 2001 From: JonnyBro Date: Sun, 26 Dec 2021 14:46:18 +0500 Subject: [PATCH] dont show track position --- commands/Music/np.js | 2 +- commands/Music/queue.js | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/commands/Music/np.js b/commands/Music/np.js index 319305ba..31807ecb 100644 --- a/commands/Music/np.js +++ b/commands/Music/np.js @@ -33,7 +33,7 @@ class Np extends Command { .setThumbnail(track.thumbnail) .addField(message.translate("music/np:T_TITLE"), track.name + `\n${track.url}`) .addField(message.translate("music/np:T_CHANNEL"), track.uploader.name ? track.uploader.name : "Отсутствует") - .addField(message.translate("music/np:T_DURATION"), track.formattedDuration) + .addField(message.translate("music/np:T_DURATION"), `${queue.formattedCurrentTime} / ${track.formattedDuration}`) .setColor(data.config.embed.color) .setFooter(data.config.embed.footer) .setTimestamp(); diff --git a/commands/Music/queue.js b/commands/Music/queue.js index 5f311c31..99bc55e3 100644 --- a/commands/Music/queue.js +++ b/commands/Music/queue.js @@ -33,8 +33,6 @@ class Queue extends Command { return message.channel.send(embed); }; - let i = 0; - const FieldsEmbed = new Pagination.FieldsEmbed(); FieldsEmbed.embed @@ -47,7 +45,7 @@ class Queue extends Command { .setChannel(message.channel) .setElementsPerPage(5) .setPageIndicator(true) - .formatField("Очередь", (track) => `${++i}. [${track.name}](${track.url})\n*Добавил ${track.member}*\n`); + .formatField("Очередь", (track) => `[${track.name}](${track.url})\n*Добавил ${track.member}*\n`); FieldsEmbed.build(); }