summaryrefslogtreecommitdiff
path: root/lambda-calcul/javascript/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'lambda-calcul/javascript/index.js')
-rw-r--r--lambda-calcul/javascript/index.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/lambda-calcul/javascript/index.js b/lambda-calcul/javascript/index.js
index 5c080d1..c01c39e 100644
--- a/lambda-calcul/javascript/index.js
+++ b/lambda-calcul/javascript/index.js
@@ -23,7 +23,7 @@ const waitForEnterToBePressed = () => {
output: process.stdout,
});
- return readlineInterface.question('Done. Press Enter to finish.')
+ return readlineInterface.question(`Done. Press Enter to unregister ${playerName}.`)
.then(() => readlineInterface.close());
};
@@ -34,4 +34,5 @@ client.start()
})
.then(() => solveNextChallenge(token))
.then(() => waitForEnterToBePressed())
- .then(() => console.log('Done done!'));
+ .then(() => client.unregister(token))
+ .then(() => console.log(`${playerName} unregistered!`));