From 52b52190f3f201a74145901e718a936fcaa1d2bb Mon Sep 17 00:00:00 2001
From: Daniel Allen <dtallen1@cs.washington.edu>
Date: Tue, 16 Jan 2018 19:56:03 -0800
Subject: [PATCH] Update ChatWindow.java

---
 src/chat/ChatWindow.java | 22 ----------------------
 1 file changed, 22 deletions(-)

diff --git a/src/chat/ChatWindow.java b/src/chat/ChatWindow.java
index 391f948..fe8856d 100644
--- a/src/chat/ChatWindow.java
+++ b/src/chat/ChatWindow.java
@@ -30,11 +30,6 @@ import org.alicebot.ab.MagicBooleans;
 import org.alicebot.ab.MagicStrings;
 import org.alicebot.ab.PCAIMLProcessorExtension;
 
-import com.google.code.chatterbotapi.ChatterBot;
-import com.google.code.chatterbotapi.ChatterBotFactory;
-import com.google.code.chatterbotapi.ChatterBotSession;
-import com.google.code.chatterbotapi.ChatterBotType;
-
 import cse332.misc.WordReader;
 import javafx.application.Platform;
 import javafx.embed.swing.JFXPanel;
@@ -53,7 +48,6 @@ public class ChatWindow {
     private final StringBuilder content;
     public String theirUsername;
     public Chat esession;
-    public ChatterBotSession csession;
     private final WordSuggestor[] markov;
     private final UMessageServerConnection connection;
     private final SpellingCorrector checker;
@@ -86,15 +80,6 @@ public class ChatWindow {
 
             this.esession = new Chat(bot);
         }
-        else if (this.theirUsername.equals("cleverbot")) {
-            ChatterBotFactory factory = new ChatterBotFactory();
-            ChatterBot bot1;
-            try {
-                bot1 = factory.create(ChatterBotType.CLEVERBOT);
-                this.csession = bot1.createSession();
-            } catch (Exception e) {
-            }
-        }
     }
 
     /**
@@ -388,13 +373,6 @@ public class ChatWindow {
             receiveMessage(this.esession.multisentenceRespond(msg));
             return;
         }
-        else if (this.theirUsername.equals("cleverbot")) {
-            try {
-                receiveMessage(this.csession.think(msg));
-                return;
-            } catch (Exception e) {
-            }
-        }
         else {
             try {
                 this.connection.m_channel(this.theirUsername, msg);
-- 
GitLab