From 84659f3ecdbd87d2287a328c4c09459cc372c565 Mon Sep 17 00:00:00 2001 From: Expand-sys Date: Thu, 8 Feb 2024 20:44:19 +1100 Subject: [PATCH] beans2 --- commands/slashcommands/utility/query.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/slashcommands/utility/query.js b/commands/slashcommands/utility/query.js index 17eb168..7cdd3f6 100644 --- a/commands/slashcommands/utility/query.js +++ b/commands/slashcommands/utility/query.js @@ -2,7 +2,7 @@ const { CommandInteraction, ApplicationCommandType, ApplicationCommandOptionType const { sendResponse, sendReply, channelSend } = require('../../../utils/utils'); const path = require('path'); const { Rcon } = require("rcon-client"); -const dig = require("gamedig") +import { GameDig } from gamedig module.exports = { @@ -16,7 +16,7 @@ module.exports = { async execute(interaction) { const { member, guild, options } = interaction await interaction.deferReply({ ephemeral: false }).catch(err => console.error(`There was a problem deferring an interaction: `, err)); - dig.query({ + GameDig.query({ type: 'minecraft', host: process.env.MCHOST, port: process.env.MCHOSTPORT,