mirror of
https://github.com/musix-org/musix-oss
synced 2024-12-22 21:13:18 +00:00
Chore update 3.10.1
This commit is contained in:
parent
ef195e4377
commit
75be67a18b
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "musix",
|
||||
"version": "3.10.0",
|
||||
"version": "3.10.1",
|
||||
"description": "V3 for Musix the discord music bot",
|
||||
"main": "./index.js",
|
||||
"scripts": {
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user