Anti spam
how would you go about making an anti spam, so say as if someone was spam messaging how would I log that with my bot?
15 Replies
• What's your exact discord.js
npm list discord.js
and node node -v
version?
• Post the full error stack trace, not just the top part!
• Show your code!
• Explain what exactly your issue is.
• Not a discord.js issue? Check out #useful-servers.just check the amount of messages someone sent in a specific timeframe
or check if their messages are equal
how would i keep checking if that same user has made multiple messages? is what i dont understand
store them in a collection
surely i dont have to create some sort of database to log that?
so thers no other way
you can cache them locally
yes thats what i mean
alright well
caching them locally is not a db
well
it technically is the way im about to use it
just store them in a collection
yes ok
thank you
then check on messageCreate if the last message.content is equal to the content of the new message
alright
thanks a lot !
yw