mirror of
https://github.com/musix-org/musix-oss
synced 2024-11-10 05:10: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)
|
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()
|
||||||
|
Loading…
Reference in New Issue
Block a user