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