Merge branch 'next' of https://github.com/mudkipscience/woomy into next
This commit is contained in:
commit
9ab8731f90
2 changed files with 59 additions and 1 deletions
|
@ -172,6 +172,7 @@ exports.play = async function (client, data, message, query, ignoreQueue) {
|
|||
guild.playing = true
|
||||
|
||||
guild.voiceChannel = vc
|
||||
guild.channel = message.channel
|
||||
|
||||
const connection = await vc.join()
|
||||
|
||||
|
@ -180,7 +181,7 @@ exports.play = async function (client, data, message, query, ignoreQueue) {
|
|||
guild.dispatcher = connection.play(await ytdl(exports.getLinkFromID(v.video.videoId), { highWaterMark: 1024 * 1024 * 32 }), { type: 'opus' })
|
||||
guild.dispatcher.setVolume(data.defaultVolume)
|
||||
|
||||
message.channel.send('Playing **' + v.video.title + '**')
|
||||
guild.channel.send('Playing **' + v.video.title + '**')
|
||||
|
||||
// play next in queue on end
|
||||
guild.dispatcher.once('finish', () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue