13 lines
No EOL
253 B
TypeScript
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(); |