import { Rcon } from "."; const rcon = new Rcon({ host: process.env.HOST + "", password: process.env.PASSWORD + "" }) rcon.on("authenicated", async () => { console.log(await rcon.exec("whitelist list")) rcon.close() }) rcon.connect();