1
0
mirror of https://github.com/musix-org/musix-oss synced 2024-09-20 07:41:56 +00:00

no reasons

This commit is contained in:
MatteZ02 2020-03-04 23:17:33 +02:00
parent 1813f6b03f
commit 7637cb3e84
4 changed files with 4 additions and 4 deletions

View File

@ -16,7 +16,7 @@ module.exports = {
if (isNaN(pos)) return msg.channel.send('<:redx:674263474704220182> I\'m sorry, But you need to enter a valid __number__.'); if (isNaN(pos)) return msg.channel.send('<:redx:674263474704220182> I\'m sorry, But you need to enter a valid __number__.');
if (pos < 0) return msg.channel.send('<:redx:674263474704220182> The seeking point needs to be a positive number!'); if (pos < 0) return msg.channel.send('<:redx:674263474704220182> The seeking point needs to be a positive number!');
if (pos > data.length_seconds) return msg.channel.send(`<:redx:674263474704220182> The lenght of this song is ${data.length_seconds} seconds! You can't seek further than that!`); if (pos > data.length_seconds) return msg.channel.send(`<:redx:674263474704220182> The lenght of this song is ${data.length_seconds} seconds! You can't seek further than that!`);
serverQueue.connection.dispatcher.end('seek'); serverQueue.connection.dispatcher.end();
serverQueue.endReason = "seek"; serverQueue.endReason = "seek";
client.funcs.play(msg.guild, serverQueue.songs[0], client, msg, pos, false); client.funcs.play(msg.guild, serverQueue.songs[0], client, msg, pos, false);
} }

View File

@ -29,7 +29,7 @@ module.exports = {
function skipSong(serverQueue, msg) { function skipSong(serverQueue, msg) {
msg.channel.send('<:skip:674685614221688832> Skipped the song!'); msg.channel.send('<:skip:674685614221688832> Skipped the song!');
serverQueue.endReason = "skip"; serverQueue.endReason = "skip";
serverQueue.connection.dispatcher.end('skipped'); serverQueue.connection.dispatcher.end();
}; };
function vote(serverQueue, msg) { function vote(serverQueue, msg) {
serverQueue.votesNeeded = Math.floor(serverQueue.voiceChannel.members.size / 2); serverQueue.votesNeeded = Math.floor(serverQueue.voiceChannel.members.size / 2);

View File

@ -20,7 +20,7 @@ module.exports = {
serverQueue.songs.shift(); serverQueue.songs.shift();
} }
serverQueue.endReason = "skipto"; serverQueue.endReason = "skipto";
serverQueue.connection.dispatcher.end('skipto'); serverQueue.connection.dispatcher.end();
} }
} }
}; };

View File

@ -12,7 +12,7 @@ module.exports = {
serverQueue.songs = []; serverQueue.songs = [];
serverQueue.looping = false; serverQueue.looping = false;
serverQueue.endReason = "stop"; serverQueue.endReason = "stop";
serverQueue.connection.dispatcher.end('Stopped'); serverQueue.connection.dispatcher.end();
msg.channel.send('<:stop:674685626108477519> Stopped the music!') msg.channel.send('<:stop:674685626108477519> Stopped the music!')
} }
} }