1
0
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:
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",
"version": "3.10.0",
"version": "3.10.1",
"description": "V3 for Musix the discord music bot",
"main": "./index.js",
"scripts": {

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;
if (pos > totalLength) {
message = client.messages.seekMax.replace(
"%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);
}