1
0
mirror of https://github.com/musix-org/musix-oss synced 2024-12-23 03:33:17 +00:00

Update play.js

This commit is contained in:
MatteZ02 2020-07-19 23:38:50 +03:00
parent 208b535da0
commit 1d4750aa46

View File

@ -67,8 +67,11 @@ module.exports = async function (guild, song, client, seek, play) {
}); });
const dispatcher = queue.connection.play(stream, streamConfig.options) const dispatcher = queue.connection.play(stream, streamConfig.options)
dispatcher.setVolume(queue.volume / 100); dispatcher.setVolume(queue.volume / 100);
require("../../events/dispatcherEvents/handler")(client, dispatcher, queue, guild); require("../../events/dispatcherEvents/handler")(client, dispatcher, queue, guild);
if ((client.global.db.guilds[guild.id].startPlaying && play) || play) { if ((client.global.db.guilds[guild.id].startPlaying && play) || play) {
if (song.type !== "ytdl" && song.type !== "spotify") return; if (song.type !== "ytdl" && song.type !== "spotify") return;
const embed = new Discord.MessageEmbed() const embed = new Discord.MessageEmbed()