From d098c4b401baf29ef93626b814f12cf342d3d5d7 Mon Sep 17 00:00:00 2001 From: Andre Mateus Silva Date: Wed, 8 Nov 2017 12:39:50 +0000 Subject: [PATCH] Added code to send the user name to the client --- Server.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Server.py b/Server.py index 4779ed9..891b9be 100644 --- a/Server.py +++ b/Server.py @@ -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)