try fix nowplaying duration pt2
Build Docker images / push-image (push) Failing after 2m32s
Details
Build Docker images / push-image (push) Failing after 2m32s
Details
This commit is contained in:
parent
644557d683
commit
b1fb1211f4
2
index.js
2
index.js
|
@ -149,7 +149,7 @@ client.on('messageCreate', message => {
|
||||||
if (!checkQueue(message)) return;
|
if (!checkQueue(message)) return;
|
||||||
let queue = distube.getQueue(message);
|
let queue = distube.getQueue(message);
|
||||||
let song = queue.songs[0];
|
let song = queue.songs[0];
|
||||||
message.channel.send(`Currently playing \`${song.name}\`\nDuration: \`${song.formattedCurrentTime}\` / \`${song.formattedDuration}\``);
|
message.channel.send(`Currently playing \`${song.name}\`\nDuration: \`${queue.formattedCurrentTime}\` / \`${song.formattedDuration}\``);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (['seek', 'jump', 'j'].includes(command)) {
|
if (['seek', 'jump', 'j'].includes(command)) {
|
||||||
|
|
Loading…
Reference in New Issue