Lita Handler plugin to do polling a RSS Feed.
Add lita-rssfeed-notifier to your Lita instance's Gemfile:
gem "lita-rssfeed-notifier", github: 'komazarari/lita-rssfeed-notifier'
TODO: More details
Create ./message_config.yml
to configure robot's message.
site:
feed_url: 'http://site-url/to-subscribe/rss10.xml'
messages:
- "Find update [[rss#title]] ! Let's go: [[rss#link]]"
- "Oh [[rss#title]], [[mycomments]] [[myemos]] : [[rss#link]]"
replaces:
mycomments: ['yeah', 'cool', 'uhmm..']
myemos:
- ':('
- ':)'
- ':p'
Robot will post one of messages
randomly with replacing placeholder [[...]]
.
[[rss#<element>]]
will replaced with RSS element.[[other_strings]]
will replaced with collections underreplaces
randomly.
Create './message_config.yml' like above, and
Lita > start watching