Skip to content

Commit

Permalink
use import
Browse files Browse the repository at this point in the history
  • Loading branch information
TheTrunk committed Jan 26, 2024
1 parent e5b5142 commit 9c76cd9
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/services/application/checks.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
/* eslint-disable no-unused-vars */
const gamedig = import('gamedig');

const axios = require('axios');
const config = require('config');
const https = require('https');
const ethers = require('ethers');
const gamedig = require('gamedig');
const serviceHelper = require('../serviceHelper');
const log = require('../../lib/log');

Expand Down Expand Up @@ -613,7 +614,8 @@ async function checkBitcoinNode(ip, port, name) {

async function checkMinecraft(ip, port) {
try {
const state = await gamedig.query({
const gg = await gamedig;
const state = await gg.GameDig.query({
type: 'minecraft',
host: ip,
port,
Expand All @@ -627,7 +629,8 @@ async function checkMinecraft(ip, port) {

async function checkPalworld(ip, port) {
try {
const state = await gamedig.query({
const gg = await gamedig;
const state = await gg.GameDig.query({
type: 'palworld',
host: ip,
port,
Expand Down

0 comments on commit 9c76cd9

Please sign in to comment.