Replies: 2 comments
-
Hi mate, This is due to caching by default, primarily due to messages and users building up over time. But, every case is definitely different. For myself, I posted a solution here Good luck, also perhaps maybe utilise sweepers instead of just disabling cache.. unless you need cache. |
Beta Was this translation helpful? Give feedback.
-
Hey, Thanks man. Curious, when I disable the cache, can he still access the roles from the user creating the message? I only read tho and track informations, just not sure, if I fetch roles every time if I not get rate limited. But I think message cache is a big issue. I will check out sweapers when I get time and report back. How much messages you fetch per second? I track quite a few per second, curious if there is a limit on how much I can track per Bot. (Msg/s) Ps : Sorry for horrible typing, midnight here and on mobile 😪 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey,
So I'm running a self-bot as a Monitoring tool on a lot of servers (usually 100k+ users and tons of messages)
Every few hours, the bot reaches the 200 MB memory limit, and PM2 restarts the bot, which seems not to be an issue. However, I would love to make further improvements to my bot for a better overall life cycle.
What would happen if I reduce the cache time of Messages, etc.?
I never reply to anything; the bot purely reads messages and sometimes fetches reply messages.
Edit: I noticed the Memory slowly goes up, over hours / days. Is that some cache that never gets cleared?
Beta Was this translation helpful? Give feedback.
All reactions