mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2024-11-09 23:00:18 +00:00
Update play.js
This commit is contained in:
parent
612a0b444d
commit
28d635f0a8
@ -4,7 +4,9 @@ module.exports = async function (guild, client, url) {
|
|||||||
const dispatcher = radio.connection
|
const dispatcher = radio.connection
|
||||||
.play(url, { bitrate: 1024, passes: 10, volume: 1, highWaterMark: 1 << 25 })
|
.play(url, { bitrate: 1024, passes: 10, volume: 1, highWaterMark: 1 << 25 })
|
||||||
.on("finish", () => {
|
.on("finish", () => {
|
||||||
|
radio.voiceChannel.leave();
|
||||||
radio.delete();
|
radio.delete();
|
||||||
|
return;
|
||||||
});
|
});
|
||||||
dispatcher.on('start', () => {
|
dispatcher.on('start', () => {
|
||||||
dispatcher.player.streamingData.pausedTime = 0;
|
dispatcher.player.streamingData.pausedTime = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user