fit-ctu-discord/honza-botner

SPAM preventing feature

Opened this issue · 0 comments

Prevent users from posting the same message more than two times. Aka on posting, the bot will look at the user's last 10 (?) messages (or in some time, last 10 seconds?) and if they contain some % of similarity (> 90 %?) it will be classified as spam and the user will be timeouted for 30 minutes.

// not sure about the specific threshold and the similarity percentage