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:
@ -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: [],
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user