From ee7484e656f5eccc0d96497e40eabaa3ee4df1e2 Mon Sep 17 00:00:00 2001 From: derAnfaenger Date: Wed, 26 Jul 2017 20:01:46 +0200 Subject: [PATCH] john bot: Change confusing variable 'abot' to 'chatterbot'. --- zulip_bots/zulip_bots/bots/john/john.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zulip_bots/zulip_bots/bots/john/john.py b/zulip_bots/zulip_bots/bots/john/john.py index edb4e65..4b73811 100644 --- a/zulip_bots/zulip_bots/bots/john/john.py +++ b/zulip_bots/zulip_bots/bots/john/john.py @@ -101,11 +101,11 @@ class JohnHandler(object): self.bot.train( "chatterbot.corpus.english" ) - self.bota = create_chat_bot(True) + self.chatterbot = create_chat_bot(True) def handle_message(self, message, bot_handler, state_handler): original_content = message['content'] - bot_response = str(self.bota.get_response(original_content)) + bot_response = str(self.chatterbot.get_response(original_content)) bot_handler.send_reply(message, bot_response) handler_class = JohnHandler