mirror of
https://github.com/musix-org/musix-oss
synced 2024-11-10 05:10:17 +00:00
Chore update 3.10.1
This commit is contained in:
parent
ef195e4377
commit
75be67a18b
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "musix",
|
"name": "musix",
|
||||||
"version": "3.10.0",
|
"version": "3.10.1",
|
||||||
"description": "V3 for Musix the discord music bot",
|
"description": "V3 for Musix the discord music bot",
|
||||||
"main": "./index.js",
|
"main": "./index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
@ -21,12 +21,15 @@ module.exports = {
|
|||||||
if (isNaN(pos)) {
|
if (isNaN(pos)) {
|
||||||
if (pos < 0)
|
if (pos < 0)
|
||||||
return msg.channel.send(client.messages.seekingPointPositive);
|
return msg.channel.send(client.messages.seekingPointPositive);
|
||||||
|
const totalLength = parseInt(queue.songs[0].info.lengthSeconds);
|
||||||
let message;
|
let message;
|
||||||
message = client.messages.seekMax.replace(
|
if (pos > totalLength) {
|
||||||
"%LENGTH%",
|
message = client.messages.seekMax.replace(
|
||||||
queue.songs[0].info.lengthSeconds
|
"%LENGTH%",
|
||||||
);
|
queue.songs[0].info.lengthSeconds
|
||||||
if (pos > queue.songs[0].info.lengthSeconds) return msg.channel.send(message);
|
);
|
||||||
|
return msg.channel.send(message);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
client.funcs.end(client, msg, pos, command);
|
client.funcs.end(client, msg, pos, command);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user