john bot: Change confusing variable 'abot' to 'chatterbot'.

This commit is contained in:
derAnfaenger 2017-07-26 20:01:46 +02:00
parent 51bf0cf869
commit ee7484e656

View file

@ -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