From e8b54fc1381752565f01df0e2fa73e21a02ef888 Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Fri, 26 Oct 2012 10:42:31 -0400 Subject: [PATCH] feedbact-bot: send feedback messages sent by non-MIT users too. (imported from commit 00eb1f99af751665d036d25ea31da3dbfdf327a4) --- bots/feedback-bot | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/bots/feedback-bot b/bots/feedback-bot index e4da883..66ac1d1 100755 --- a/bots/feedback-bot +++ b/bots/feedback-bot @@ -24,13 +24,12 @@ client = api.common.HumbugAPI(email="feedback@humbughq.com", site=options.site) def forward_message(message): - if message["sender_email"].endswith("@mit.edu"): - forwarded_message = { - "type": "stream", - "stream": "support", - "subject": "feedback from %s" % message["sender_email"], - "content": message["content"], - } - client.send_message(forwarded_message) + forwarded_message = { + "type": "stream", + "stream": "support", + "subject": "feedback from %s" % message["sender_email"], + "content": message["content"], + } + client.send_message(forwarded_message) client.call_on_each_message(forward_message)