Hi,
  I have expected few amount of messages but actually they are very much.
Here I am proposing to minimize the message flow to irc channel.
Please review the attached patch and if it looks good then apply.

Thank you,
Parag.
From 636dfb78e5223231f1f55a46fef59ec7a81abd9f Mon Sep 17 00:00:00 2001
From: Parag A Nemade <pnem...@fedoraproject.org>
Date: Fri, 14 Oct 2016 17:34:22 +0530
Subject: [PATCH] Another improvement to g11n bot

Signed-off-by: Parag A Nemade <pnem...@fedoraproject.org>
---
 roles/fedmsg/irc/templates/ircbot.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/roles/fedmsg/irc/templates/ircbot.py b/roles/fedmsg/irc/templates/ircbot.py
index 83f0fce..80e0158 100644
--- a/roles/fedmsg/irc/templates/ircbot.py
+++ b/roles/fedmsg/irc/templates/ircbot.py
@@ -253,8 +253,11 @@ config = dict(
             nickname='fedmsg-g11n',
             {% endif %}
             channel='#fedora-g11n',
-            # If the word i18n/g11n appears in any message, forward it.
+            # If the word i18n/g11n appears in any of below topic message, forward it.
             filters=dict(
+                topic=[
+                    '^((?!(trac|pagure|planet|mailman|meetbot\.meeting\.complete)).)*$',
+                ],
                 body=['^((?!(i18n|g11n)).)*$'],
             ),
         ),
-- 
2.9.3

_______________________________________________
infrastructure mailing list -- infrastructure@lists.fedoraproject.org
To unsubscribe send an email to infrastructure-le...@lists.fedoraproject.org

Reply via email to