mirror of
https://github.com/tribufu/sdk-js
synced 2025-06-15 18:24:19 +00:00
16 lines
352 B
JavaScript
16 lines
352 B
JavaScript
// Copyright (c) Tribufu. All Rights Reserved.
|
|
// SPDX-License-Identifier: MIT AND Apache-2.0
|
|
|
|
import dotenv from 'dotenv';
|
|
import { TribufuClient } from '../build/index.mjs';
|
|
|
|
dotenv.config();
|
|
|
|
async function main() {
|
|
const client = TribufuClient.fromEnv("TRIBUFU");
|
|
const games = await client.getServers();
|
|
console.log(games);
|
|
}
|
|
|
|
main();
|