Skip to content
This repository has been archived by the owner on Jul 14, 2023. It is now read-only.

komazarari/lita-rssfeed-notifier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lita-rssfeed-notifier

Lita Handler plugin to do polling a RSS Feed.

Installation

Add lita-rssfeed-notifier to your Lita instance's Gemfile:

gem "lita-rssfeed-notifier", github: 'komazarari/lita-rssfeed-notifier'

Configuration

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 under replaces randomly.

Usage

Create './message_config.yml' like above, and

Lita > start watching

License

MIT

About

Polling RSS Feed and notify updates.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages