terminal: Apply BotHandler for TerminalBotHandler.
MODIFY
zulip_bots/zulip_bots/simple_lib.py
zulip_bots/zulip_bots/simple_lib.py
@@ -42,12 +42,19 @@ class SimpleMessageServer:
class TerminalBotHandler:
def __init__(self, bot_config_file):
self.bot_config_file = bot_config_file
- self.storage = SimpleStorage()
+ self._storage = SimpleStorage()
self.message_server = SimpleMessageServer()
+ @property
+ def storage(self):
+ return self._storage
+
def identity(self):
return BotIdentity("bot name", "bot-email@domain")
+ def react(self, message, emoji_name):
+ raise NotImplementedError
+
def send_message(self, message):
if message['type'] == 'stream':
print('''

terminal: Apply BotHandler for TerminalBotHandler.