irc-rss-listener

IRC bot to post RSS updates for garbash
git clone git://git.alexkarle.com.com/irc-rss-listener
Log | Files | Refs | README

commit b70334e0a80a07a2255b4534582c92f74cc827cb (patch)
parent f3b1dd33a1ec9cd36b46efd04f7c67732d9cc930
Author: alex <alex@garbash.com>
Date:   Sun,  9 Oct 2022 15:54:38 -0400

Multiplex feeds list by host/channel

I want to send some updates (my blog, etc) to the general
channel in our tilde, but I have a music-specific blog that
better fits the #music channel--by putting the $host.$channel
in both the feeds list and the /tmp files, I can have a separate
irl cron job running per channel!

Diffstat:
Mirl.sh | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/irl.sh b/irl.sh @@ -46,10 +46,10 @@ QUIT EOM } -feeds=/etc/irl/feeds -known_ids=/tmp/irl-known.ids -all_ids=/tmp/irl-all.ids -new_ids=/tmp/irl-new.ids +feeds=/etc/irl/$host.$channel +known_ids=/tmp/irl-known.$host.$channel.ids +all_ids=/tmp/irl-all.$host.$channel.ids +new_ids=/tmp/irl-new.$host.$channel.ids [ ! -e $feeds ] && die "Create $feeds to begin!" command -v sfeed >/dev/null || die "sfeed not installed"