From fbe995facb8f3cf45d803a2fc352581aeaf17c7a Mon Sep 17 00:00:00 2001 From: Braydon Date: Mon, 15 Apr 2024 12:59:23 -0700 Subject: [PATCH] Add sdk/js/mojang/status --- sdk%2Fjs%2Fmojang%2Fstatus.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 sdk%2Fjs%2Fmojang%2Fstatus.md diff --git a/sdk%2Fjs%2Fmojang%2Fstatus.md b/sdk%2Fjs%2Fmojang%2Fstatus.md new file mode 100644 index 0000000..1797654 --- /dev/null +++ b/sdk%2Fjs%2Fmojang%2Fstatus.md @@ -0,0 +1,23 @@ +# Server Status + +## Example +```ts +import { + getMojangServerStatus, + type MojangServerStatusResponse, +} from "restfulmc-lib"; + +const serverStatus: MojangServerStatusResponse = await getMojangServerStatus(); // Get the status of Mojang's servers +console.log(serverStatus); // Log the status of Mojang's servers +``` + +## Output +```json +{ + "https://libraries.minecraft.net": "ONLINE", + "https://api.mojang.com": "ONLINE", + "https://sessionserver.mojang.com": "ONLINE", + "https://assets.mojang.com": "ONLINE", + "https://textures.minecraft.net": "ONLINE", +} +``` \ No newline at end of file