Update play.js

This commit is contained in:
MatteZ02 2020-03-08 11:41:25 +02:00
parent 612a0b444d
commit 28d635f0a8

View File

@ -4,7 +4,9 @@ module.exports = async function (guild, client, url) {
const dispatcher = radio.connection
.play(url, { bitrate: 1024, passes: 10, volume: 1, highWaterMark: 1 << 25 })
.on("finish", () => {
radio.voiceChannel.leave();
radio.delete();
return;
});
dispatcher.on('start', () => {
dispatcher.player.streamingData.pausedTime = 0;