mirror of
https://github.com/musix-org/musix-oss
synced 2024-12-23 06:43:17 +00:00
patch
This commit is contained in:
parent
1c0d89dada
commit
c2e5e34088
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "musix",
|
"name": "musix",
|
||||||
"version": "3.8.2",
|
"version": "3.8.3",
|
||||||
"description": "V3 for Musix the discord music bot",
|
"description": "V3 for Musix the discord music bot",
|
||||||
"main": "./index.js",
|
"main": "./index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
@ -41,8 +41,8 @@ function findSimilar(client, queue, prevSongs, guild) {
|
|||||||
let retries = 0;
|
let retries = 0;
|
||||||
const query =
|
const query =
|
||||||
prevSongs[Math.floor(Math.random() * Math.floor(prevSongs.length))];
|
prevSongs[Math.floor(Math.random() * Math.floor(prevSongs.length))];
|
||||||
similarSongs.find(
|
if (!query || !query.track) return client.funcs.play(guild, queue.songs[0], client, 0, true);
|
||||||
{
|
similarSongs.find({
|
||||||
title: query.track.name,
|
title: query.track.name,
|
||||||
artist: query.track.artists[0].name,
|
artist: query.track.artists[0].name,
|
||||||
limit: 10,
|
limit: 10,
|
||||||
|
Loading…
Reference in New Issue
Block a user