1
0
mirror of https://github.com/musix-org/musix-oss synced 2024-12-23 00:23:17 +00:00
This commit is contained in:
MatteZ02 2020-07-05 17:34:39 +03:00
parent 1c0d89dada
commit c2e5e34088
2 changed files with 4 additions and 4 deletions

View File

@ -1,6 +1,6 @@
{
"name": "musix",
"version": "3.8.2",
"version": "3.8.3",
"description": "V3 for Musix the discord music bot",
"main": "./index.js",
"scripts": {

View File

@ -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,