From a283cae098dc1324f0dd07ca2e0709359efcbe6b Mon Sep 17 00:00:00 2001 From: Luke Faraone Date: Wed, 9 Oct 2013 20:16:51 -0400 Subject: [PATCH] Store the feedback bot key in local_settings.py (imported from commit 3322d8976328db61cd382acb06775c6a6df3fea0) --- bots/feedback-bot | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bots/feedback-bot b/bots/feedback-bot index 9d91df0..dc2cfa2 100755 --- a/bots/feedback-bot +++ b/bots/feedback-bot @@ -5,6 +5,8 @@ import logging sys.path.append(path.join(path.dirname(__file__), '../api')) import zulip +sys.path.append(path.join(path.dirname(__file__), '../zproject')) +import local_settings class StreamLogger(object): """ @@ -34,12 +36,12 @@ sys.stderr = stderr_logger prod_client = zulip.Client( email="feedback@zulip.com", - api_key="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", + api_key=local_settings.FEEDBACK_BOT_KEY, verbose=True, site="https://api.zulip.com") staging_client = zulip.Client( email="feedback@zulip.com", - api_key="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", + api_key=local_settings.FEEDBACK_BOT_KEY, verbose=True, site="https://staging.zulip.com/api")