3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-23 17:45:03 +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);
}, 100);
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;
}, 5000);
}, 15000);
bot.initialize();
logger.info("Bot Initialized");