mirror of
https://github.com/musix-org/musix-oss
synced 2025-06-16 18:56:00 +00:00
patch
This commit is contained in:
@ -41,8 +41,8 @@ function findSimilar(client, queue, prevSongs, guild) {
|
||||
let retries = 0;
|
||||
const query =
|
||||
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,
|
||||
artist: query.track.artists[0].name,
|
||||
limit: 10,
|
||||
@ -80,4 +80,4 @@ function findSimilar(client, queue, prevSongs, guild) {
|
||||
}
|
||||
}
|
||||
);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user