mirror of
https://github.com/musix-org/musix-oss
synced 2024-12-22 18:03:17 +00:00
Update play.js
This commit is contained in:
parent
208b535da0
commit
1d4750aa46
@ -67,8 +67,11 @@ module.exports = async function (guild, song, client, seek, play) {
|
||||
});
|
||||
|
||||
const dispatcher = queue.connection.play(stream, streamConfig.options)
|
||||
|
||||
dispatcher.setVolume(queue.volume / 100);
|
||||
|
||||
require("../../events/dispatcherEvents/handler")(client, dispatcher, queue, guild);
|
||||
|
||||
if ((client.global.db.guilds[guild.id].startPlaying && play) || play) {
|
||||
if (song.type !== "ytdl" && song.type !== "spotify") return;
|
||||
const embed = new Discord.MessageEmbed()
|
||||
|
Loading…
Reference in New Issue
Block a user