blob: e06ac4d78c29efade784328424794c9e8e4464a5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
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}`) || token)
.then(client.nextChallenge)
.then((challenge) => console.log(`Next challenge: ${challenge}`));
|