From 3c63d79c9acaf3312089c0e4f3a3482841539e1c Mon Sep 17 00:00:00 2001 From: Gunther Cox Date: Sat, 19 Nov 2016 08:16:39 -0500 Subject: [PATCH] Remove the 'no_logic' adapter. It isn't documented or used anywhere. --- chatterbot/adapters/logic/no_logic.py | 21 --------------------- 1 file changed, 21 deletions(-) delete mode 100644 chatterbot/adapters/logic/no_logic.py diff --git a/chatterbot/adapters/logic/no_logic.py b/chatterbot/adapters/logic/no_logic.py deleted file mode 100644 index 616a9b8b3..000000000 --- a/chatterbot/adapters/logic/no_logic.py +++ /dev/null @@ -1,21 +0,0 @@ -from chatterbot.adapters.logic import LogicAdapter -from chatterbot.conversation import Statement - - -class NoLogic(LogicAdapter): - - def can_process(self, statement): - """ - Determines if this adapter can respond to the input. - """ - return True - - def process(self, statement): - import random - - # Get all statements that are in response to the closest match - response_list = self.context.storage.filter( - in_response_to__contains=statement.text - ) - - return 1, random.choice(response_list)