make default name random

This commit is contained in:
Romain Beaumont 2021-03-01 23:37:04 +01:00 committed by GitHub
parent 3a32bea036
commit f06255475d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -16,7 +16,7 @@ async function main () {
const viewDistance = 6
const host = prompt('Host', '95.111.249.143')
const port = parseInt(prompt('Port', '10000'))
const username = prompt('Username', 'pviewer_person')
const username = prompt('Username', 'pviewer_person ' + (Math.floor(Math.random() * 1000)))
let password = prompt('Password (blank for offline)')
password = password === '' ? undefined : password
console.log(`connecting to ${host} ${port} with ${username}`)