diff options
| author | Emmanuel Gaillot <emmanuel.gaillot@gmail.com> | 2025-12-20 22:08:25 +0100 |
|---|---|---|
| committer | Emmanuel Gaillot <emmanuel.gaillot@gmail.com> | 2025-12-20 22:08:25 +0100 |
| commit | 1b1877e3328170fe839d2f8ca4d108ec2b0a0454 (patch) | |
| tree | f06e7134790cb71e9a417ec4a5b2747493220fa4 /lambda-calcul/javascript/index.js | |
| parent | 37d26e407f903e87bbf4c247c8385b662319b620 (diff) | |
| download | lambda-nantes-1b1877e3328170fe839d2f8ca4d108ec2b0a0454.tar.gz | |
Unregister user
Diffstat (limited to 'lambda-calcul/javascript/index.js')
| -rw-r--r-- | lambda-calcul/javascript/index.js | 5 |
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!`)); |
