n0ur
DIAdiscord.js - Imagine an app
•Created by n0ur on 3/26/2024 in #djs-questions
Building an Efficient Bot: Task Automation and Resource Optimizatione
How mb i found channel.messages.cache.get, thx
6 replies
DIAdiscord.js - Imagine an app
•Created by n0ur on 3/26/2024 in #djs-questions
Building an Efficient Bot: Task Automation and Resource Optimizatione
So a cache, something like this ?:
6 replies
DIAdiscord.js - Imagine an app
•Created by n0ur on 3/26/2024 in #djs-questions
Building an Efficient Bot: Task Automation and Resource Optimizatione
Thank you ! 🙂
6 replies
DIAdiscord.js - Imagine an app
•Created by n0ur on 3/26/2024 in #djs-questions
Building an Efficient Bot: Task Automation and Resource Optimizatione
Indeed, you've just made me realize that in any case, the MessageCreate event will be emitted
I'm going to opt for a cache and store all the messages in it. Then, I'll keep the task that executes every 5 minutes to go through the cache and do what i need
6 replies