i used a timeout not an interval 😭
This commit is contained in:
parent
b0905eca90
commit
92389c73b9
2
index.ts
2
index.ts
|
@ -1097,5 +1097,5 @@ receiver.router.get('*', (req, res) => {
|
||||||
|
|
||||||
cacheStuff();
|
cacheStuff();
|
||||||
|
|
||||||
setTimeout(cacheStuff, 60 * 1000) // Cache every minute. Ratelimit is 1200 req/m anyways.
|
setInterval(cacheStuff, 60 * 1000) // Cache every minute. Ratelimit is 1200 req/m anyways.
|
||||||
})();
|
})();
|
||||||
|
|
Loading…
Reference in a new issue