C
C
CatRoys2020-06-23 07:36:20
Python
CatRoys, 2020-06-23 07:36:20

How can I filter spam?

I made a small filter for a large number of emojis, it works as it should.
But, it is quite easy to get around it by understanding the length, hence the question - how can you implement warnings for spam? How many messages can already be considered spam?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
Guerro69, 2020-06-24
@Guerro69

There is one quick option that won't be concerned with timing or async, it's just taking a message and using .split to throw each letter/character of the message into a list and then check if len(list) is less than 2 characters, usually spamming with letters /two, or if len(list) is more than 300 characters, because they can spam one message with many characters

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question