nimsrvstat
A nim wrapper around mcsrvstat
Summary
| Latest Version | 0.1.2 |
|---|---|
| License | MIT |
| CI Status | Failing |
| Downloads | 0 |
| Last Indexed | 2026-07-21 05:26 |
Tags
Authors
- minejerik
Installation
nimble install nimsrvstat
choosenim install nimsrvstat
git clone https://github.com/Minejerik/nimsrvstat
OS Compatibility
| Platform | Linux | macOS | Windows | FreeBSD | OpenBSD | NetBSD | Android | iOS | WASM | Embedded |
|---|---|---|---|---|---|---|---|---|---|---|
| nimsrvstat | ✓ | ✓ | ✓ | - | - | - | - | - | - | - |
Dependencies
| Package | Version | Optional |
|---|---|---|
| nim >= | 1.6.14 | No |
Source
| Repository | https://github.com/Minejerik/nimsrvstat |
|---|---|
| Homepage | https://github.com/Minejerik/nimsrvstat |
| Registry Source | nimble_official |
README
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())