No description
Find a file
2024-05-07 11:08:18 -04:00
src remove errors 2024-05-07 09:46:57 -04:00
tests fix testing bug 2024-05-07 11:08:18 -04:00
.gitignore fix small bug + bump version 2024-05-06 13:15:29 -04:00
example.nim fix small bug + bump version 2024-05-06 13:15:29 -04:00
nimsrvstat.nimble fix small bug + bump version 2024-05-06 13:15:29 -04:00
README.md fix import 2024-05-07 09:46:21 -04:00

nimsrvstat

A nim wrapper around the mcsrvstat api

Usage

Here is some example code of it getting, and saving, the icon of a server:

import nimsrvstat
import std/options

# Create server instance
var server = Server(
    address: "hypixel.net",
    platform: Java
)

# Gets the data for the server (required to use anything)
server.getData

# Check if the icon exists
# If it does write it to a file.
if server.icon().isSome():
    writeFile("icon.png", server.icon().get())