3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-24 18:15:02 +00:00

debug: increase 'lowest global remaining' log interval

This commit is contained in:
Dragory 2021-11-02 20:14:19 +02:00
parent 8e96335c08
commit b59e1f0a95

View file

@ -384,9 +384,9 @@ connect().then(async () => {
lowestGlobalRemaining = Math.min(lowestGlobalRemaining, (client as any).rest.globalRemaining); lowestGlobalRemaining = Math.min(lowestGlobalRemaining, (client as any).rest.globalRemaining);
}, 100); }, 100);
setInterval(() => { setInterval(() => {
console.log("Lowest global remaining in the past 5 seconds:", lowestGlobalRemaining); console.log("Lowest global remaining in the past 15 seconds:", lowestGlobalRemaining);
lowestGlobalRemaining = Infinity; lowestGlobalRemaining = Infinity;
}, 5000); }, 15000);
bot.initialize(); bot.initialize();
logger.info("Bot Initialized"); logger.info("Bot Initialized");