mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-03-16 14:11:50 +00:00
Tweak
This commit is contained in:
parent
8f790109df
commit
3ff5590744
1 changed files with 2 additions and 2 deletions
|
@ -152,7 +152,7 @@ connect().then(async () => {
|
||||||
const client = new Client({
|
const client = new Client({
|
||||||
partials: ["USER", "CHANNEL", "GUILD_MEMBER", "MESSAGE", "REACTION"],
|
partials: ["USER", "CHANNEL", "GUILD_MEMBER", "MESSAGE", "REACTION"],
|
||||||
|
|
||||||
restGlobalRateLimit: 5,
|
restGlobalRateLimit: 10,
|
||||||
restTimeOffset: 1000,
|
restTimeOffset: 1000,
|
||||||
|
|
||||||
// Disable mentions by default
|
// Disable mentions by default
|
||||||
|
@ -183,7 +183,7 @@ connect().then(async () => {
|
||||||
|
|
||||||
client.on(Constants.Events.RATE_LIMIT, data => {
|
client.on(Constants.Events.RATE_LIMIT, data => {
|
||||||
// tslint:disable-next-line:no-console
|
// tslint:disable-next-line:no-console
|
||||||
console.log(`[DEBUG] [RATE_LIMIT] ${JSON.stringify(data)}`);
|
// console.log(`[DEBUG] [RATE_LIMIT] ${JSON.stringify(data)}`);
|
||||||
});
|
});
|
||||||
|
|
||||||
const safe429DecayInterval = 5 * SECONDS;
|
const safe429DecayInterval = 5 * SECONDS;
|
||||||
|
|
Loading…
Add table
Reference in a new issue