![RSS-o-Bot Logo alt text](https://i.imgur.com/reQMPMD.png)
![Dependency Status](https://dependencyci.com/github/Kriegslustig/rss-o-bot/badge)
A super simple command-line RSS and Atom reader/client. It's not made to read Feeds (like Newsbeuter), but to notify you when new items are posted. The Web is supposed to be decentralized. Most readers (like RSS Bot) are built through centralized services. RSS-o-Bot is not. It's build to be run on your own machine. Notifications are managed by services that are installed separately. Notification services are available for email, desktop notifications and Telegram.
Name
The name RSS-o-Bot is a play on RSS Bot. The o stands for open as in FOSS.
Documentation
Refer to the man-page on Github or man rss-o-bot
(if you have installed it).
Installation
npm i -g rss-o-bot
npm i -g rss-o-bot-email
Your RSS-o-Bot, will search for a configuration file here: ~/.rss-o-bot/config.json
. Here's an example configuration:
{
"notification-methods": ["desktop", "telegram", "email"],
"email-recipients": ["someone@somewhereinthe.net"],
"telegram-api-token": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
"telegram-recipients": ["00000000"]
}
By default rss-o-bot stores its data inside a SQLite database in ~/.rss-o-bot/feeds.sqlite
.
Usage
First, let's add a feed:
$ rss-o-bot add https://github.com/kriegslustig/rss-o-bot/commits/master.atom
When we now list all feeds, the one we added, is displayed.
$ rss-o-bot list
1: null - https://github.com/kriegslustig/rss-o-bot/commits/master.atom -
The first column in the output of rss-o-bot list
is the feeds IDs. The second shows the title. It's null
right now, because
$ rss-o-bot rm 1
Now we can add the URL again, now with a filter:
$ rss-o-bot add https://github.com/kriegslustig/rss-o-bot/commits/master.atom "notif"
So now we get notified, whenever a commit message contains the string "notif". There are some more options available when adding filtered feeds. Refer to the man-page for more information.
Available Notifiers
Daemonizing
To run RSS-o-Bot, you'll want to daemonize (make it run in the background) it. Daemonizing it brings some problems with it though. The daemonized process can't send desktop notifications. If you're using Linux you'll probably want to go with systemd. Figure it out yourself. If not, you probably want to use pm2. It provides a really powerful, yet simple to use system for process-daemonization (LOL).
npm i -g pm2
pm2 start rss-o-bot
If you haven't yet, I'd make pm2 services start upon reboot.
pm2 startup [platform]
Development
Before committing, use npm run build
to build the man page and the JS.
Developing Notifiers
RSS-o-Bot requires a module for each "notification-methods" in the pattern rss-o-bot-${method}
. You may develop your own notifier by creating a package and naming it rss-o-bot-${method-name}
. That package's main should export a single function that is called by rss-o-bot
in the following manner:
notifier(configuration)(blogTitle, entryUrl, entryTitle)
You may want to check the rss-o-bot-email
source code for further reference.
Credits
Logo created by mala23
TODO
- make isDirectory/isFile return false instead of throwing
- test schema against config and cache result. (use hashing function to check if config has changed. store the hash inside a cache table. Also, add a test-config command)
- remove callback from pollFeeds
- use flow
- Test the docker container
- Completions