From 8c5e5a083ebb5d809d42b1d3fc0105fab8f18a87 Mon Sep 17 00:00:00 2001 From: eddy Date: Sat, 5 Sep 2026 17:23:02 +0200 Subject: [PATCH] v1.1.1: !rss filter toont het huidige globale filter --- buzzrss/bot.py | 12 +++++++++++- maubot.yaml | 2 +- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/buzzrss/bot.py b/buzzrss/bot.py index 947d1ee..d418d77 100644 --- a/buzzrss/bot.py +++ b/buzzrss/bot.py @@ -407,7 +407,7 @@ class RSSBot(Plugin): await evt.reply(f"Subscribed to {feed_info}") @rss.subcommand( - "set-filter", aliases=("f", "filter"), help="Set the global match filter (whitelist regex) for all feeds." + "set-filter", aliases=("f",), help="Set the global match filter (whitelist regex) for all feeds." ) @command.argument("match_filter", "match filter", pass_raw=True) async def set_filter(self, evt: MessageEvent, match_filter: str) -> None: @@ -432,6 +432,16 @@ class RSSBot(Plugin): else: await evt.reply("Global filter removed (all posts will be sent)") + @rss.subcommand( + "filter", aliases=("show-filter", "get-filter"), help="Show the current global match filter." + ) + async def command_show_filter(self, evt: MessageEvent) -> None: + f = self.config["match_filter"] + if f: + await evt.reply(f"**Current global filter:**\n```\n{f}\n```") + else: + await evt.reply("No global filter is set (all posts are sent)") + @rss.subcommand( "unsubscribe", aliases=("u", "unsub"), help="Unsubscribe this room from a feed." ) diff --git a/maubot.yaml b/maubot.yaml index 47521c1..b2efc06 100644 --- a/maubot.yaml +++ b/maubot.yaml @@ -1,5 +1,5 @@ id: nl.eddydevink.rss -version: 1.1.0 +version: 1.1.1 modules: - buzzrss main_class: RSSBot