fixing username

This commit is contained in:
raven
2023-01-12 10:29:32 -05:00
parent 0ba92e4b60
commit 4d31a133a9
2 changed files with 7 additions and 7 deletions

View File

@ -1,12 +1,12 @@
var unirest = require('unirest');
async function login(key, conns, MYKEY) {
async function login(key, conns, MYKEY, USERNAME) {
getUSERNAME(key)
.then((data) => {
process.stdout.write("\033[2J")
process.stdout.write("\033[0f")
console.log("Hello, " + data + "\nYou are now logged in.\n\n\n")
USERNAME = data
USERNAME[0] = data
MYKEY.push(key)
LOGGEDIN = true
for (const conn of conns) {