rconts/test.ts
Your Name e6c5c14f32 hi
2025-02-28 22:23:19 +02:00

13 lines
No EOL
253 B
TypeScript

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();