mirror of
https://github.com/tribufu/node-gamedig
synced 2026-05-06 07:07:33 +00:00
* feat: export games and protocols besides GameDig * fix: revert ProtocolResolver rename * fix: imports on the attempt tools * docs: update changelog to note exports
11 lines
287 B
JavaScript
11 lines
287 B
JavaScript
import { GameDig } from '../lib/index.js'
|
|
// Instead of '../lib/index.js' you would have here 'gamedig'.
|
|
|
|
GameDig.query({
|
|
type: 'minecraft',
|
|
host: 'mc.hypixel.net'
|
|
}).then((state) => {
|
|
console.log(state)
|
|
}).catch((error) => {
|
|
console.log(`Server is offline, error: ${error}`)
|
|
})
|