From 1b1877e3328170fe839d2f8ca4d108ec2b0a0454 Mon Sep 17 00:00:00 2001 From: Emmanuel Gaillot Date: Sat, 20 Dec 2025 22:08:25 +0100 Subject: Unregister user --- lambda-calcul/javascript/index.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lambda-calcul/javascript/index.js') 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!`)); -- cgit v1.3.1