1
0
mirror of https://github.com/musix-org/musix-oss synced 2025-07-06 09:50:48 +00:00

Updated the way currently playing music is declared.

This should get arid of the problem when skipping/stopping music causes the bot to error.
This commit is contained in:
MatteZ02
2019-11-22 20:51:41 +02:00
parent a05b069f99
commit 0c72a2d9b1
13 changed files with 1098 additions and 32 deletions

View File

@ -21,7 +21,8 @@ module.exports = async function (video, message, voiceChannel, client, playlist
connection: null,
songs: [],
volume: client.global.db.guilds[message.guild.id].defaultVolume,
playing: true,
playing: false,
paused: false,
looping: false,
votes: 0,
voters: [],

View File

@ -33,6 +33,7 @@ module.exports = async function (guild, song, client, message, seek, play) {
.setTitle(`:musical_note: Start playing: **${song.title}**`)
.setDescription(`Song duration: \`${client.funcs.msToTime(songtime)}\``)
.setColor("#b50002")
serverQueue.playing = true;
serverQueue.textChannel.send(embed);
}
}