summaryrefslogtreecommitdiff
path: root/lambda-calcul/javascript/index.js
diff options
context:
space:
mode:
authorEmmanuel Gaillot <emmanuel.gaillot@gmail.com>2025-12-20 19:39:05 +0100
committerEmmanuel Gaillot <emmanuel.gaillot@gmail.com>2025-12-20 20:25:10 +0100
commit487fd6802ef2cb248dbabd804fac2ae4c91e76e9 (patch)
tree0fef7f3b0036313121b09435217b67e8995782f5 /lambda-calcul/javascript/index.js
parentc608d95a2451d110d3a90d6a3c3a6aa7fb293295 (diff)
downloadlambda-nantes-487fd6802ef2cb248dbabd804fac2ae4c91e76e9.tar.gz
Register user
Diffstat (limited to 'lambda-calcul/javascript/index.js')
-rw-r--r--lambda-calcul/javascript/index.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/lambda-calcul/javascript/index.js b/lambda-calcul/javascript/index.js
new file mode 100644
index 0000000..03bcaf6
--- /dev/null
+++ b/lambda-calcul/javascript/index.js
@@ -0,0 +1,11 @@
+const LC = require('./src/client');
+
+const playerName = process.env.PLAYER_NAME || 'A shy user';
+
+client = LC.newClient({
+ playerName,
+ challengerURL: process.env.CHALLENGER_URL,
+});
+
+client.start()
+ .then((token) => console.log(`${playerName} has registered with token ${token}`));