1
0
mirror of https://github.com/musix-org/musix-oss synced 2025-07-05 08:50:48 +00:00

api quota

This commit is contained in:
MatteZ02
2020-03-19 22:17:37 +02:00
parent 4d5c33ddf7
commit 1a5fc5985c
3 changed files with 1 additions and 15 deletions

View File

@ -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);