1
0
mirror of https://github.com/musix-org/musix-oss synced 2024-09-20 04:31:56 +00:00

mOrE KeYS

This commit is contained in:
MatteZ02 2020-03-19 19:48:41 +02:00
parent 27c15e1f33
commit 104c68e758
2 changed files with 12 additions and 3 deletions

View File

@ -43,10 +43,17 @@ module.exports = {
} catch (err) { } catch (err) {
console.error(err); console.error(err);
if (err.code === 403) { if (err.code === 403) {
if (client.config.api_key === client.config.api_key2) { if (client.config.api_key === client.config.api_key) {
client.config.api_key = client.config.api_key3; console.log('KEY 2');
} else {
client.config.api_key = client.config.api_key2; client.config.api_key = client.config.api_key2;
} else if (client.config.api_key === client.config.api_key2) {
console.log('KEY 3');
client.config.api_key = client.config.api_key3;
} else if (client.config.api_key === client.config.api_key3) {
client.config.api_key = client.config.api_key4;
}
else if (client.config.api_key === client.config.api_key4) {
client.config.api_key = client.config.api_key1;
} }
return msg.channel.send(client.messages.quotaReached); return msg.channel.send(client.messages.quotaReached);
} }

View File

@ -5,8 +5,10 @@ module.exports = {
devToken: process.env.DEVTOKEN, devToken: process.env.DEVTOKEN,
dblKey: process.env.DBLKEY, dblKey: process.env.DBLKEY,
api_key: process.env.GOOGLE_API_KEY, api_key: process.env.GOOGLE_API_KEY,
api_key1: process.env.GOOGLE_API_KEY1,
api_key2: process.env.GOOGLE_API_KEY2, api_key2: process.env.GOOGLE_API_KEY2,
api_key3: process.env.GOOGLE_API_KEY3, api_key3: process.env.GOOGLE_API_KEY3,
api_key4: process.env.GOOGLE_API_KEY4,
testServer: "489111553321336832", testServer: "489111553321336832",
debug_channel: "634718645188034560", debug_channel: "634718645188034560",
primary_test_channel: "617633098296721409", primary_test_channel: "617633098296721409",