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

Update 3.3

This commit is contained in:
MatteZ02
2020-04-29 14:41:16 +03:00
parent 07fd7df141
commit 1158d32910
10 changed files with 54 additions and 11 deletions

View File

@ -13,7 +13,10 @@ module.exports = async function (client, reason, guild) {
queue.time = 0;
queue.votes = 0;
queue.voters = [];
queue.songs.shift();
if (reason !== "replay") {
if (reason === "previous") queue.songs.unshift(queue.prevSongs.pop())
if (reason !== "previous") queue.prevSongs.push(queue.songs.shift());
}
}
client.funcs.play(guild, queue.songs[0], client, 0, true);
};
};