eggtcl / rss-synd

Highly configurable asynchronous RSS & Atom feed reader for Eggdrops written in TCL. Supports multiple feeds, gzip compressed feeds, automatically messaging channels with updates at set intervals, custom private/channel triggers and more.
BSD 3-Clause "New" or "Revised" License
25 stars 17 forks source link

filter option #1

Open neofutur opened 12 years ago

neofutur commented 12 years ago

this is just a feature request, not a bug ;)

It would be very useful to have a filter option, to ignore items containing some words.

The filter could be a list of words, and/ or a regular expression.

thanks for rss-synd , great tool I use eveyday for rss2irc !

hm2k commented 12 years ago

Hi there,

Thanks for your suggestion.

This shouldn't be too hard to introduce, however there are a few other issues that may need to be addressed first.

So to make it a bit easier, how do you expect this to work? Have you seen a good example of how this might work?

Thanks.

neofutur commented 12 years ago

nothing urgent, just a feature request ;)

I d set ip up as an option for each rss feed

filter "word1,word2,porn"

and items containing those words or regexps wont be displayed on the IRC

its been implement in a more complex and more versatile way in the rss2irc plugin for supybot, could be an example : https://github.com/nanotube/supybot_fixes/blob/master/plugins/RSS/config.py

in this implementation there is a whitelist filter ( only items containing those words or regexps will be displayed ) and a blacklist filter ( items containing these words or regexps wont be displayed )

a simple implementation is good for me, but the whitelist/blacklist system seems a good option too . . .if you want more work ;)

hm2k commented 11 years ago

I don't have time to implement such a feature, but if you write a pull request, I will include it.