Any ways to reduce Discord bot memory usage?

Hello. My bot in 64 guilds takes over 200~300MB RAM. My question is how can I reduce memory usage to like 50MB?

Don’t store data in memory (like a large array or something)

Use a database instead

Which db engine do you recommend?

It depends on the use case. I personally use mongodb myself.

Here’s some example https://glitch.com/@storage

If you’re really not into that kind of stuff, google sheet is probably the easiest to manage.

Anything else I can do?