patched error with keys (temporary)

This commit is contained in:
MatteZ02 committed 2020-07-12 19:16:54 +03:00
1 parent 163b6ce836
commit 2686829e80
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -48,7 +48,7 @@ function findSimilar(client, queue, prevSongs, guild) {
limit: 10,
lastfmAPIKey: client.config.lastfm_api_key,
lastfmAPISecret: client.config.lastfm_secret,
youtubeAPIKey: client.config.api_keys[(client.shard.ids / 2).toFixed()],
youtubeAPIKey: client.config.api_keys[(client.shard.ids / 2).toFixed() || client.config.api_key],
},
async function (err, songs) {
if (err) {