1
0
mirror of https://github.com/musix-org/musix-oss synced 2025-07-03 16:24:28 +00:00

Chore update 3.10.1

This commit is contained in:
MatteZ02
2020-07-19 14:16:04 +03:00
parent ef195e4377
commit 75be67a18b
2 changed files with 9 additions and 6 deletions

View File

@ -21,12 +21,15 @@ module.exports = {
if (isNaN(pos)) {
if (pos < 0)
return msg.channel.send(client.messages.seekingPointPositive);
const totalLength = parseInt(queue.songs[0].info.lengthSeconds);
let message;
message = client.messages.seekMax.replace(
"%LENGTH%",
queue.songs[0].info.lengthSeconds
);
if (pos > queue.songs[0].info.lengthSeconds) return msg.channel.send(message);
if (pos > totalLength) {
message = client.messages.seekMax.replace(
"%LENGTH%",
queue.songs[0].info.lengthSeconds
);
return msg.channel.send(message);
}
}
client.funcs.end(client, msg, pos, command);
}