mirror of
https://github.com/tribufu/tribufu-js
synced 2026-05-06 06:47:27 +00:00
Fix client headers
This commit is contained in:
parent
2a3c9854e6
commit
c441ff7ff5
3 changed files with 19 additions and 6 deletions
|
|
@ -8,11 +8,8 @@ dotenv.config();
|
|||
|
||||
async function main() {
|
||||
const client = TribufuClient.fromEnv("TRIBUFU");
|
||||
|
||||
if (await client.passwordLogin("", "")) {
|
||||
const userInfo = await client.getUserInfo();
|
||||
console.log(userInfo);
|
||||
}
|
||||
const games = await client.getServers();
|
||||
console.log(games);
|
||||
}
|
||||
|
||||
main();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue