Skip to content
Permalink
Browse files
Fixed category selecting, not recognising input
  • Loading branch information
mateussa committed Nov 8, 2017
1 parent 0d07326 commit ad03c759038442092a233e810ec017ecc8715043
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
@@ -42,8 +42,8 @@ def receiveMessage():

print ("CLIENT: {}".format(message))

answerUserInput = determineUserInput(message)
answerUserInput = determineUserInput(message)

return(answerUserInput)

def askSomething(answerType, sendMessages, noAnswers, defaultAnswer):
@@ -60,9 +60,10 @@ def askSomething(answerType, sendMessages, noAnswers, defaultAnswer):

if(answerType == -1):
for cat in sendMessages:
if (answer[0].casefold() in cat.casefold()):
if (answer[0].casefold() == cat.casefold()):
answer = (answer[0], -1)
break
break

if (answer[1] == 2): # If the use asked a questions
sendMessage("The answer to that is {}.".format(answer[0]), False)
Binary file not shown.

1 comment on commit ad03c75

@hortonr6
Copy link
Owner

@hortonr6 hortonr6 commented on ad03c75 Nov 8, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

100th Commit!!

Please sign in to comment.