From e4cc960f771d947e820dbfd263ce14bbc5cca4bb Mon Sep 17 00:00:00 2001 From: "Justin W. Flory" Date: Mon, 1 Jun 2020 13:13:28 -0400 Subject: [PATCH] ircbot: Add additional topics for #fedora-design (closes #8683) This commit adds a few other topics and fixes some syntax for the Fedora Design crew. This is untested at commit time and may need further adjustment once it gets deployed. Closes fedora-infrastructure#8683. https://pagure.io/fedora-infrastructure/issue/8683 cc: @duffy @pingou @cverna Signed-off-by: Justin W. Flory --- roles/fedmsg/irc/templates/ircbot.py | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/roles/fedmsg/irc/templates/ircbot.py b/roles/fedmsg/irc/templates/ircbot.py index abd51a77b2..6e4c7b6a17 100644 --- a/roles/fedmsg/irc/templates/ircbot.py +++ b/roles/fedmsg/irc/templates/ircbot.py @@ -325,27 +325,25 @@ config = dict( ), # Hook up the design-team + {% if env == "production" %} dict( network='chat.freenode.net', port=6667, make_pretty=True, make_terse=True, - - {% if env == 'staging' %} - nickname='fm-stg-design', - {% else %} nickname='fm-design', - {% endif %} channel='#fedora-design', + filters=dict( topic=[ - '^((?!(mailman|pagure.(issue|pull-request).new)).)*$', + '^((?!(github\.(issue|pull_request)\.opened|mailman|nuancier|pagure\.(issue|pull-request)\.new)).)*$', ], body=[ - "^((?!(u'name': u'design')).)*$", + "^((?!(u'name': u'design'|design-team|fedora-design)).)*$", ], ), ), + {% endif %} # And #fedora-docs wants in on the action dict(