mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-03 21:43:21 +00:00 
			
		
		
		
	Store the feedback bot key in local_settings.py
(imported from commit 3322d8976328db61cd382acb06775c6a6df3fea0)
This commit is contained in:
		@@ -5,6 +5,8 @@ import logging
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
sys.path.append(path.join(path.dirname(__file__), '../api'))
 | 
					sys.path.append(path.join(path.dirname(__file__), '../api'))
 | 
				
			||||||
import zulip
 | 
					import zulip
 | 
				
			||||||
 | 
					sys.path.append(path.join(path.dirname(__file__), '../zproject'))
 | 
				
			||||||
 | 
					import local_settings
 | 
				
			||||||
 | 
					
 | 
				
			||||||
class StreamLogger(object):
 | 
					class StreamLogger(object):
 | 
				
			||||||
    """
 | 
					    """
 | 
				
			||||||
@@ -34,12 +36,12 @@ sys.stderr = stderr_logger
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
prod_client = zulip.Client(
 | 
					prod_client = zulip.Client(
 | 
				
			||||||
    email="feedback@zulip.com",
 | 
					    email="feedback@zulip.com",
 | 
				
			||||||
    api_key="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
 | 
					    api_key=local_settings.FEEDBACK_BOT_KEY,
 | 
				
			||||||
    verbose=True,
 | 
					    verbose=True,
 | 
				
			||||||
    site="https://api.zulip.com")
 | 
					    site="https://api.zulip.com")
 | 
				
			||||||
staging_client = zulip.Client(
 | 
					staging_client = zulip.Client(
 | 
				
			||||||
    email="feedback@zulip.com",
 | 
					    email="feedback@zulip.com",
 | 
				
			||||||
    api_key="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
 | 
					    api_key=local_settings.FEEDBACK_BOT_KEY,
 | 
				
			||||||
    verbose=True,
 | 
					    verbose=True,
 | 
				
			||||||
    site="https://staging.zulip.com/api")
 | 
					    site="https://staging.zulip.com/api")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -29,6 +29,9 @@ RABBITMQ_PASSWORD = 'xxxxxxxxxxxxxxxx'
 | 
				
			|||||||
MAILCHIMP_API_KEY = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx-us4'
 | 
					MAILCHIMP_API_KEY = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx-us4'
 | 
				
			||||||
ZULIP_FRIENDS_LIST_ID = '84b2f3da6b'
 | 
					ZULIP_FRIENDS_LIST_ID = '84b2f3da6b'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# This can be filled in automatically from the database
 | 
				
			||||||
 | 
					FEEDBACK_BOT_KEY = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# This should be synced with our camo installation
 | 
					# This should be synced with our camo installation
 | 
				
			||||||
CAMO_KEY = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
 | 
					CAMO_KEY = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user