diff --git a/commands/Music/np.js b/commands/Music/np.js index d737935b..319305ba 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.isLive ? message.translate("music/play:LIVE") : message.convertTime(Date.now() + track.duration * 1000, "to", true)) + .addField(message.translate("music/np:T_DURATION"), track.formattedDuration) .setColor(data.config.embed.color) .setFooter(data.config.embed.footer) .setTimestamp(); diff --git a/index.js b/index.js index 1fd94aa1..e57338ef 100644 --- a/index.js +++ b/index.js @@ -24,7 +24,7 @@ const JaBa = require("./base/JaBa"), const init = async () => { // Search for all commands const directories = await readdir("./commands/"); - client.logger.log(`Loading a total of ${directories.length} categories.`, "log"); + client.logger.log(`\nLoading a total of ${directories.length} categories.`, "log"); directories.forEach(async (dir) => { const commands = await readdir(`./commands/${dir}/`); commands.filter((cmd) => cmd.split(".").pop() === "js").forEach((cmd) => { @@ -37,7 +37,7 @@ const init = async () => { // Then we load events, which will include our message and ready event. const evtFiles = await readdir("./events/"); - client.logger.log(`Loading a total of ${evtFiles.length} events.`, "log"); + client.logger.log(`\nLoading a total of ${evtFiles.length} events.`, "log"); evtFiles.forEach((file) => { const eventName = file.split(".")[0]; client.logger.log(`Loading Event: ${eventName}`);