1
0
mirror of https://github.com/musix-org/musix-oss synced 2025-06-16 18:56:00 +00:00

voiceStateUpdate

This commit is contained in:
MatteZ02
2020-03-04 22:27:14 +02:00
parent 4583917947
commit 6bf3ffdfc9
3 changed files with 5 additions and 8 deletions

View File

@ -1,17 +1,14 @@
module.exports = async function (client, reason, guild) {
const serverQueue = client.queue.get(guild.id);
serverQueue.playing = false;
if (reason === "Stream is not generating quickly enough.") {
console.log("Song ended");
} else if (reason === "seek") {
if (reason === "seek") {
return;
} else {
console.log(reason);
}
if (!serverQueue.songLooping) {
if (serverQueue.looping) {
serverQueue.songs.push(serverQueue.songs[0]);
}
serverQueue.votes = 0;
serverQueue.voters = [];
serverQueue.songs.shift();