singlerider / lorenzotherobot

Twitch Chat bot written in Python
17 stars 9 forks source link

joyider-Adding more extensive SPAM filter #72

Closed joyider closed 8 years ago

joyider commented 8 years ago

AntiSpam

Love this bot and decided to contribute with a more complete spam filter. Filtering out URLs Bad words (list from google "official" bad words list) CAPS (based on percentage of message length 75% currently) Repeated Words

TODO

Make all threshold values being set in config Repeated words only look for words of a length of 4 and more, this makes some emotes being spammable (like: <3 etc...) *Implement "NON-English" character check

Files modified: bot.py src/lib/init.py src/lib/spam_detector.py

singlerider commented 8 years ago

I'll approve it, mostly because the words list is hilarious. I'll improve it in time by changing the list to a dict to bring the spam check to a constant O(1) time lookup as opposed to an O(n) lookup per word. Thanks for the PR. What channels use your implementation of this bot?

joyider commented 8 years ago

A few minor streamers not worth mentioning, but Roys stream(stronglegs) is the biggest one :)

And using a dictionary is probably a smart thing why didn't i think of that my self :(

Cheers

singlerider commented 8 years ago

I see he uses TwitchAlerts. I work there as a dev. If he has any feature requests or bugs to report, let me know at my personal email from my Github profile. Thanks again for your interest in this bot!