Skip to content
Permalink
Browse files
Commented and made the prints more clear
  • Loading branch information
Emily Lycett committed Oct 29, 2020
1 parent 5fa9b91 commit 96d3c62a5d7613bc99c09e28076d8f945b1ddfb6
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
BIN +0 Bytes (100%) .vs/Chatbot/v16/.suo
Binary file not shown.
BIN +0 Bytes (100%) .vs/slnx.sqlite
Binary file not shown.
@@ -2,21 +2,28 @@
talk = True

while True:
#if you get to a "only <word> was recognised" then it doesn't have enough information.
#consider creating a case for that question
userMessage = input()
userMessage = userMessage.lower()
if "what" in userMessage or "whaddup" in userMessage:
print("what")
if "game" in userMessage:
print("I see you're asking about <what game>, but I don't have that functionality yet")
else:
print("I only recognised the word <what> in that sentence")
elif "when" in userMessage:
print("when")
print("I only recognised the word <when> in that sentence")
elif "who" in userMessage:
print("who")
print("I only recognised the word <who> in that sentence")
elif "why" in userMessage:
print("I only recognised the word <why> in that sentence")
print("Stop being an annoying cunt")
elif "which" in userMessage:
print("which")
print("I only recognised the word <which> in that sentence")
elif "how" in userMessage:
print("how")
print("I only recognised the word <how> in that sentence")
else:
print("I'm sorry, I am just a baby yet to learn all the words")
print("But either way, I don't think that was a question")
#no words were recognised, create a case for that question
#=============================

0 comments on commit 96d3c62

Please sign in to comment.