From a62a89bca4c4e110a9d36ad8076ff1450ca9aada Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Robert=20H=C3=B6nig?= <robhoenig@gmail.com>
Date: Wed, 11 Jan 2017 17:46:25 +0000
Subject: [PATCH] Rename the RestrictedClient class to BotHandlerApi

As a first step into restructuring the run.py layout to support a
worker and an API-wrapper class, we rename the RestrictedClient
class appropriately.
---
 contrib_bots/run.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/contrib_bots/run.py b/contrib_bots/run.py
index 3845853d..06a3ad57 100755
--- a/contrib_bots/run.py
+++ b/contrib_bots/run.py
@@ -31,7 +31,7 @@ class RateLimit(object):
         else:
             return True
 
-class RestrictedClient(object):
+class BotHandlerApi(object):
     def __init__(self, client):
         # Only expose a subset of our Client's functionality
         user_profile = client.get_profile()
@@ -73,7 +73,7 @@ def get_lib_module(lib_fn):
 def run_message_handler_for_bot(lib_module, quiet, config_file):
     # Make sure you set up your ~/.zuliprc
     client = Client(config_file=config_file)
-    restricted_client = RestrictedClient(client)
+    restricted_client = BotHandlerApi(client)
 
     message_handler = lib_module.handler_class()