1
0
mirror of https://github.com/musix-org/musix-oss synced 2025-08-01 01:54:35 +00:00

removed src

This commit is contained in:
MatteZ02
2020-02-10 21:08:46 +02:00
parent f28c2fcd77
commit ee246734aa
48 changed files with 12 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
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") {
return;
} else {
console.log(reason);
}
if (!serverQueue.songLooping) {
if (serverQueue.looping) {
serverQueue.songs.push(serverQueue.songs[0]);
}
serverQueue.songs.shift();
}
client.funcs.play(guild, serverQueue.songs[0], client, 0, true);
};