mirror of
https://github.com/musix-org/musix-oss
synced 2024-12-23 03:33:17 +00:00
patched error with keys (temporary)
This commit is contained in:
parent
163b6ce836
commit
2686829e80
@ -48,7 +48,7 @@ function findSimilar(client, queue, prevSongs, guild) {
|
|||||||
limit: 10,
|
limit: 10,
|
||||||
lastfmAPIKey: client.config.lastfm_api_key,
|
lastfmAPIKey: client.config.lastfm_api_key,
|
||||||
lastfmAPISecret: client.config.lastfm_secret,
|
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) {
|
async function (err, songs) {
|
||||||
if (err) {
|
if (err) {
|
||||||
|
@ -38,7 +38,7 @@ module.exports = class extends Client {
|
|||||||
id: config.spotify_client_id,
|
id: config.spotify_client_id,
|
||||||
secret: config.spotify_client_secret,
|
secret: config.spotify_client_secret,
|
||||||
});
|
});
|
||||||
this.youtube = new YouTube(config.api_keys[(this.shard.ids / 2).toFixed()]);
|
this.youtube = new YouTube(config.api_keys[(this.shard.ids / 2).toFixed()] || client.config.api_key);
|
||||||
this.config = config;
|
this.config = config;
|
||||||
this.funcs = {};
|
this.funcs = {};
|
||||||
this.dispatcher = {};
|
this.dispatcher = {};
|
||||||
|
Loading…
Reference in New Issue
Block a user