Skip to content
Permalink
Browse files
Added code to send the user name to the client
  • Loading branch information
mateussa committed Nov 8, 2017
1 parent d96a278 commit d098c4b401baf29ef93626b814f12cf342d3d5d7
Showing 1 changed file with 4 additions and 0 deletions.
@@ -97,6 +97,8 @@ def qChallenge():
["You can choose a category from the list above, like 'Music'.",
"Hmmm, I see you are afraid of making a mistake."], "Any")



# Get a question and answers, from the user choice
questionSet = getQuestion(receivedMessage, "")
if ("Error" in questionSet):
@@ -154,6 +156,8 @@ clientName = askSomething(1, ["Hi! What's your name?"],
["I would prefer to know your name.",
"I see you don't want to tell me."], "Mr. Nobody")

sendMessage("YOURNAMEWILLBE " + clientName, False)

sendMessage("So, {}, I will teach you something today!"
.format(clientName.title()), False)

0 comments on commit d098c4b

Please sign in to comment.