6 releases
new 0.1.5 | Mar 25, 2023 |
---|---|
0.1.4 | Feb 28, 2023 |
0.1.2 | Jan 10, 2023 |
#646 in Command line utilities
47 downloads per month
16KB
69 lines
rss-discord
A simple rust program to scan rss feeds and send discord pings for new events.
Installation
Make sure you have rust installed, then clone the repo and
run cargo build --release
from the project root, the resulting binary will be
located at ./target/release/
Usage
Run the binary with the following environment variables set:
WEBHOOK_URL
: A discord webhook url to send the notifications toFEED_URL
: A url pointing to the rss feed that you want to monitorFEED_NAME
: A name for the rss feedMESSAGE_CONTENT
: Optional content for the message, useful for pinging users or roles with<@user_id>
or<@&role_id>
FEED_IS_HTML
: If this variable is set to any value, the feed description will be handled as html
I recommend running the program periodically (i.e. with cron) to receive updates of the feed. To check for updates on multiple feeds at once, create multiple cron jobs with different environment variables.
Dependencies
~14–22MB
~494K SLoC