mirror of
https://github.com/Expand-sys/mcbot
synced 2025-12-16 23:12:12 +11:00
beans2
This commit is contained in:
parent
f0fe76df4d
commit
84659f3ecd
1 changed files with 2 additions and 2 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue