From c451afbed8999f18bf88e1d4d170d0fdc465d126 Mon Sep 17 00:00:00 2001 From: "Saeed Issaka (issakas)" Date: Fri, 24 Nov 2017 16:57:11 +0000 Subject: [PATCH] Update ResponseGenerator.py --- ResponseGenerator.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ResponseGenerator.py b/ResponseGenerator.py index 8e922de..ee9bb07 100644 --- a/ResponseGenerator.py +++ b/ResponseGenerator.py @@ -116,11 +116,11 @@ def generateResponse(sentence, lastSentence): if "do" in sentence: if "exist" in sentence and "you" in sentence: response = response + "I exist so a group of first years can display that they have a basic grasp of python. What about you?" - elif "exist" in sentence:: + elif "exist" in sentence: response = response + "I don't know why you exist. At this current moment I suppose it is to talk to me." if "is" in sentence: if "sky" in sentence and "blue" in sentence: response = response + "Sunlight reaches Earth's atmosphere and is scattered in all directions by all the gases and particles in the air. Blue light is scattered in all directions by the tiny molecules of air in the atmosphere. Blue is scattered more than other colors because it travels as shorter, smaller waves." - elif "round" in sentence:: + elif "round" in sentence: response = response + "Simple attraction. Gravity means the most physically stable shape mathematically is a sphere." return response