Whatbot::Command::RSS - Monitor RSS feeds
Config:
"rss" : { "interval" : 480, "feed" : { "url" : "http://www.whatbot.org/timeline?format=rss", "include" : "^Changeset", "io" : "IRC_irc.exampleserver.com_#example" } }
Whatbot::Command::RSS will monitor one or more RSS feeds for you. The feeds you would like to monitor must be valid XML, or they won't parse properly.
Configure your RSS feeds in whatbot.conf under commands -> rss. The 'interval' node is the number of seconds between each check, and one or more feed nodes should represent each feed to be checked. The feed node requires the 'url' and 'io' nodes, and can include 'include' and 'exclude'. url is the full, valid http URL to the feed you want to grab, and io is the name of the io node to output the results to.
If you don't name your IO nodes, the name is auto-generated for you by the IO module, so each one would be slightly different. For instance, a IRC channel would be IRC_<hostname>_<channel>, like IRC_irc.efnet.org_#whatbot, or AIM would be AIM_<screenname>, like AIM_aimwhatbot. The include node is a regex to selectively include certain entries based on the title or description. The exclude node does the same thing, but filters items out based on the regex. In the synopsis, we get the whatbot change log via Trac, but only include SVN commits.
Be excellent to each other and party on, dudes.
To install Whatbot::Command::RSS, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Whatbot::Command::RSS
CPAN shell
perl -MCPAN -e shell install Whatbot::Command::RSS
For more information on module installation, please visit the detailed CPAN module installation guide.