misc bugfixes
This commit is contained in:
@ -2,13 +2,10 @@ import db from '../src/inc/sql.mjs';
|
||||
import lib from '../src/inc/lib.mjs';
|
||||
|
||||
import readline from 'node:readline/promises';
|
||||
import stream from 'stream';
|
||||
|
||||
const _args = process.argv[2];
|
||||
|
||||
const rl = readline.createInterface({ input: process.stdin, output: process.stdout });
|
||||
|
||||
const newuser = _args?.length ? _args : await rl.question('username: ');
|
||||
const newuser = process.argv[2]?.length ? process.argv[2] : await rl.question('username: ');
|
||||
const password = await rl.question('password: ');
|
||||
const level = +(await rl.question('level (0-100): '));
|
||||
|
||||
|
Reference in New Issue
Block a user