can
DIAdiscord.js - Imagine a bot
•Created by can on 5/31/2024 in #djs-questions
My bot cant create emoji even though it has create expressions permission
4 replies
DIAdiscord.js - Imagine a bot
•Created by can on 12/28/2023 in #djs-questions
The simplest way to add the number of words in the sent message as points to the user?
I'm trying to do something. When a new message is sent, add the number of words in the message as points to the message owner.
But if the message is edited after it is sent, I need to find the word difference between the edited messages and add/subtract points. Here the following situation arises, if the bot is restarted after the message is sent, when the message is edited, the bot does not receive the event that the message has been edited.
The same goes for deleting a message. When a message is deleted, it needs to be saved in the cache to read its content (or in the database, but adding all messages to the database takes too much space)
What should I do in this situation? What method should I follow?
6 replies