1
0
mirror of https://github.com/musix-org/musix-oss synced 2024-09-20 04:31:56 +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

@ -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": {

View File

@ -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;
if (pos > totalLength) {
message = client.messages.seekMax.replace( message = client.messages.seekMax.replace(
"%LENGTH%", "%LENGTH%",
queue.songs[0].info.lengthSeconds 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);
} }