v5.3.6
Вот так вроде нормальный автоплей
This commit is contained in:
parent
b97bbd29bd
commit
8729886d64
2 changed files with 2 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "discord-player-play-dl",
|
"name": "discord-player-play-dl",
|
||||||
"version": "5.3.5",
|
"version": "5.3.6",
|
||||||
"description": "Complete framework to facilitate music commands using discord.js and play-dl",
|
"description": "Complete framework to facilitate music commands using discord.js and play-dl",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"types": "dist/index.d.ts",
|
"types": "dist/index.d.ts",
|
||||||
|
|
|
@ -697,7 +697,7 @@ class Queue<T = unknown> {
|
||||||
return void this.player.emit("queueEnd", this);
|
return void this.player.emit("queueEnd", this);
|
||||||
}
|
}
|
||||||
|
|
||||||
const related = await play.video_info(info.related_videos[Math.random()]);
|
const related = await play.video_info(info.related_videos[Math.floor(Math.random() * (info.related_videos.length - 1))]);
|
||||||
const nextTrack = new Track(this.player, {
|
const nextTrack = new Track(this.player, {
|
||||||
title: related.video_details.title,
|
title: related.video_details.title,
|
||||||
url: related.video_details.url,
|
url: related.video_details.url,
|
||||||
|
|
Loading…
Reference in a new issue