mirror of
https://github.com/musix-org/musix-oss
synced 2024-12-22 21:13:18 +00:00
api quota
This commit is contained in:
parent
4d5c33ddf7
commit
1a5fc5985c
@ -43,16 +43,6 @@ module.exports = {
|
||||
} catch (err) {
|
||||
console.error(err);
|
||||
if (err.code === 403) {
|
||||
if (client.config.api_key === client.config.api_key) {
|
||||
client.config.api_key = client.config.api_key2;
|
||||
} else if (client.config.api_key === client.config.api_key2) {
|
||||
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.noResults);
|
||||
|
@ -5,10 +5,6 @@ module.exports = {
|
||||
devToken: process.env.DEVTOKEN,
|
||||
dblKey: process.env.DBLKEY,
|
||||
api_key: process.env.GOOGLE_API_KEY,
|
||||
api_key1: process.env.GOOGLE_API_KEY,
|
||||
api_key2: process.env.GOOGLE_API_KEY2,
|
||||
api_key3: process.env.GOOGLE_API_KEY3,
|
||||
api_key4: process.env.GOOGLE_API_KEY4,
|
||||
testServer: "489111553321336832",
|
||||
debug_channel: "634718645188034560",
|
||||
primary_test_channel: "617633098296721409",
|
||||
|
@ -85,7 +85,7 @@ module.exports = {
|
||||
queueFooter: "songs in the queue!",
|
||||
queueLength: "<:redx:674263474704220182> There are only %SONGS% amount of songs in the queue!",
|
||||
queueTitle: "__Song queue__",
|
||||
quotaReached: "<:redx:674263474704220182> Could not search for results please try again!",
|
||||
quotaReached: "<:redx:674263474704220182> Quota reached please try again after midnight Pacific Time (PT)!",
|
||||
reloaded: "All files reloaded!",
|
||||
removed: "🗑️ removed `%SONG%` from the queue!",
|
||||
reset: "<:green_check_mark:674265384777416705> Reset __all__ guild settings!",
|
||||
|
Loading…
Reference in New Issue
Block a user