impredicative / irc-rss-feed-bot

Dockerized IRC bot to post RSS/Atom and scraped HTML/JSON/CSV feeds to channels
https://hub.docker.com/r/ascensive/irc-rss-feed-bot
GNU Affero General Public License v3.0
28 stars 4 forks source link

missing features / questions #65

Closed thezoggy closed 4 years ago

thezoggy commented 4 years ago

I have been using rss-synd (eggdrop tcl script) for ages but was looking to move away from tcl. I stumbled upon this bot, and while it looks like there is lots of features I am not seeing some things and figured I'd post here to check.

impredicative commented 4 years ago

Is there SASL support for bot authentication to irc server

Yes, the underlying package miniirc does support SASL. I use the bot on Freenode with automatic SASL.

Ability to post the same feed to multiple channels.

Yes, but the feeds will post on independent schedules.

Ability to call command in channel to re-post last x items

No, and there is no plan to ever implement it. This is currently not even feasible since the bot doesn't even store a history of what was posted in its database. The database currently stores only hashes. Having said this, improved search capabilities are on the medium-term roadmap, with various possibilities for implementation.

Ability to set specifically how many items are shared on an update. I see the new config option to set how many items on the feed are share - any plans to make this more flexible, for example if I wanted to do 5 items (without having to modify the sourcecode)

No, and there is no plan to ever implement it. One reason among many is that there is serious potential for entries to be lost if this feature is implemented. As for the new: some feature, it discards all posts except three, but just the first time around for a feed.


In summary, if I had to write the bot again, I'd make its various components a lot more decoupled. Currently there is too much coupling between its components.

thezoggy commented 4 years ago

How do i do multiple channels with the same feed? Or do i just have to create multiple entries (duplicating the feed with different channels) ?

impredicative commented 4 years ago

How do i do multiple channels with the same feed? Or do i just have to create multiple entries (duplicating the feed with different channels) ?

I don't know why this is difficult. Yes, you've to create an entry for the feed under each channel. You can optionally choose to use YAML anchors to avoid significant configuration duplication.

thezoggy commented 4 years ago

Not difficult, just was confirming as it is different than other apps where they do one feed url to many channels while I could not tell if yours supported the same from the docs.

impredicative commented 4 years ago

Even so, the current config layout works. Feed URLs that are used in multiple channels are often used with channel-specific topic filters anyway.

Again, I encourage the use of YAML anchors.

thezoggy commented 4 years ago

is there a way to reload the config without stopping/starting the bot? (i did not see admin command to do so)

impredicative commented 4 years ago

is there a way to reload the config without stopping/starting the bot? (i did not see admin command to do so)

No. This is not easy to implement with the current threading architecture. It will be very difficult to fully implement even with a revised and rewritten architecture, but partial support may become possible at that time.