Skip to content
Permalink
Browse files
Update ResponseGenerator.py
  • Loading branch information
issakas committed Nov 24, 2017
1 parent 2476a1b commit c451afbed8999f18bf88e1d4d170d0fdc465d126
Showing 1 changed file with 2 additions and 2 deletions.
@@ -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

0 comments on commit c451afb

Please sign in to comment.