forked from embee/woomy
fix music
This commit is contained in:
parent
6748f1fb03
commit
4eca40d2de
1 changed files with 4 additions and 4 deletions
|
@ -132,9 +132,11 @@ module.exports = client => {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
if (!video && videos[0]) {
|
||||
video = videos[0]
|
||||
} else {
|
||||
} else if(!video) {
|
||||
video = videos
|
||||
}
|
||||
|
||||
|
@ -153,9 +155,7 @@ module.exports = client => {
|
|||
const connection = await vc.join()
|
||||
|
||||
const v = guild.queue[0]
|
||||
|
||||
console.log(v.video)
|
||||
|
||||
|
||||
guild.dispatcher = connection.play(await ytdl(client.music.getLinkFromID(v.video.videoId), { highWaterMark: 1024 * 1024 * 32 }), { type: 'opus' })
|
||||
guild.dispatcher.setVolume(0.25)
|
||||
|
||||
|
|
Loading…
Reference in a new issue