small changes

This commit is contained in:
JonnyBro 2021-12-26 14:05:03 +05:00
parent 62a33e4530
commit 7497da78b0
2 changed files with 3 additions and 3 deletions

View file

@ -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();

View file

@ -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}`);