Fork xyz.maubot.rss v0.4.1: whitelist match-filter op titel+summary

- plugin id nl.eddydevink.rss, module buzzrss (uniek, voorkomt botsing met
  xyz.maubot.rss die dezelfde 'rss'-module importeert)
- match_filter (v6-migratie, hernoemd van title_exclude_filter): post wordt
  alleen verstuurd als de regex matcht op titel OF (HTML-ontdaan) summary
- config-default whitelist voor ov-only: gvb/ebs/connexxion/transdev/keolis/
  ret/gvu/bus/metro/tram/trein(verwanten)/ov/ov-staking/staking
- set-filter: lege filter valt terug op config-default
This commit is contained in:
eddy 2026-09-05 17:13:39 +02:00
commit 0628776469
6 changed files with 923 additions and 0 deletions

24
base-config.yaml Normal file
View file

@ -0,0 +1,24 @@
# Feed update interval in minutes
update_interval: 60
# Maximum backoff in minutes when failing to fetch feeds (defaults to 5 days)
max_backoff: 7200
# How many feeds to poll in parallel? Set to 0 to disable limit.
poll_parallelism_limit: 10
# The time to sleep between send requests when broadcasting a new feed entry.
# Set to 0 to disable sleep or -1 to run all requests asynchronously at once.
spam_sleep: 2
# The prefix for all commands
# It has to be prefixed with ! in matrix to be recognised
command_prefix: "rss"
# Default post notification template for new subscriptions
notification_template: "New post in $feed_title: [$title]($link)"
# Should non-admin users be allowed to set regex filters to drop posts from feeds?
# Regexes are dangerous and may lead to DoS attacks.
allow_filter: false
# Per-subscription match filter (whitelist): set with `!rss set-filter <feed-id> <regex>`.
# A post is ONLY sent when the regex matches the title OR the (HTML-stripped) summary.
# Empty = fall back to the default below.
match_filter: "(?i)\\b(?:gvb|ebs|connexxion|cxx|transdev|keolis|ret|gvu|bus|metro|tram|ov)\\b|trein(?:en|verkeer|stel(?:len)?|staking|ongeluk)?|\\bov-staking|staking"
# Users who can bypass room permission checks
admins:
- "@user:example.com"