part of movehere

This commit is contained in:
Lukáš H 2020-04-23 17:15:48 +02:00
parent 78aab0f9f6
commit 8ed2c5948f
No known key found for this signature in database
GPG key ID: E07D6630DBC17195
2 changed files with 59 additions and 1 deletions

View file

@ -172,6 +172,7 @@ exports.play = async function (client, 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, message, query, ignoreQueue) {
guild.dispatcher = connection.play(await ytdl(exports.getLinkFromID(v.video.videoId), { highWaterMark: 1024 * 1024 * 32 }), { type: 'opus' })
guild.dispatcher.setVolume(0.25)
message.channel.send('Playing **' + v.video.title + '**')
guild.channel.send('Playing **' + v.video.title + '**')
// play next in queue on end
guild.dispatcher.once('finish', () => {