rssirc

module
v1.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 16, 2024 License: MIT

README

rssirc

rssirc is an IRC bot which follows RSS feeds.

Installation

Using a pre-compiled binary

Download a binary for your system from the releases page.

Configuration

Linux

Configuration is read from $HOME/.config/netsplit/rssirc/config.yaml. If you are not providing a custom filename, this file must exist.

Example configuration
log_level: info
irc:
    channels:
        - "#firstchannel"
        - "#secondchannel"
    server: irc.snoonet.org
    port: 6697
    ident: rssbottest
    max_reconnect: 3
    modes: +B
    nickname: rssbottest
    nickserv_account: my-nickserv-account
    nickserv_password: my-nickserv-password
    use_tls: true

    # Additional options:
    # debug: true # Enable IRC debugging
rss:
    -
        feed_url: https://www.nasa.gov/rss/dyn/breaking_news.rss
        # poll_delay is in minutes and must be 1 or greater.
        # The default is hourly.
        poll_delay: 60
        # max_history defines the cached RSS feed item length
        max_history: 3
        # channels defines which IRC channels notifications for new feed items
        # will be sent to
        channels:
            - "#firstchannel"
            - "#secondchannel"

Running

% rssirc
Optional custom config filename
% rssirc path/to/config.yaml

Limitations

  • Only new items from followed RSS feeds will be displayed in the IRC channels. This is by design and means that the bot can safely be restarted without duplicate notifications for new feed items.

License

MIT. See LICENSE.txt.

Directories

Path Synopsis
cmd
rssirc
Package main contains the application's entrypoint.
Package main contains the application's entrypoint.
internal
app/rssbot
Package rssbot is a simple IRC bot which connects to a single IRC network and receives messages from the rssfeed package.
Package rssbot is a simple IRC bot which connects to a single IRC network and receives messages from the rssfeed package.
app/rssfeed
Package rssfeed runs in parallel to rssbot.
Package rssfeed runs in parallel to rssbot.
pkg/util
Package util contains common functionality for "utilities" required by the bot and feed poller.
Package util contains common functionality for "utilities" required by the bot and feed poller.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL