From cebda1a06163b584f4f12111e8fe401dee89cd8b Mon Sep 17 00:00:00 2001 From: "Justin W. Flory" Date: Mon, 1 Jun 2020 12:39:51 -0400 Subject: [PATCH] ircbot: Make #fedora-design bot emit more useful messages I was trying to meet this criteria for the filter. I used the CommOps and Badges bots as examples to figure this out: [12:20:02] when someone posts to the list - very helpful [12:20:14] when someone files or coments on a design ticket - very helpful Signed-off-by: Justin W. Flory --- roles/fedmsg/irc/templates/ircbot.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/roles/fedmsg/irc/templates/ircbot.py b/roles/fedmsg/irc/templates/ircbot.py index 763b494dc9..abd51a77b2 100644 --- a/roles/fedmsg/irc/templates/ircbot.py +++ b/roles/fedmsg/irc/templates/ircbot.py @@ -324,7 +324,7 @@ config = dict( ), ), - # Hook up the design-team with badges messages + # Hook up the design-team dict( network='chat.freenode.net', port=6667, @@ -338,7 +338,12 @@ config = dict( {% endif %} channel='#fedora-design', filters=dict( - body=['^((?!(fedora-badges|design-team|fedoradesign)).)*$'], + topic=[ + '^((?!(mailman|pagure.(issue|pull-request).new)).)*$', + ], + body=[ + "^((?!(u'name': u'design')).)*$", + ], ), ),