mirror of
https://github.com/Expand-sys/mcbot
synced 2025-12-17 07:12:13 +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 { sendResponse, sendReply, channelSend } = require('../../../utils/utils');
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
const { Rcon } = require("rcon-client");
|
const { Rcon } = require("rcon-client");
|
||||||
const dig = require("gamedig")
|
import { GameDig } from gamedig
|
||||||
|
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
|
|
@ -16,7 +16,7 @@ module.exports = {
|
||||||
async execute(interaction) {
|
async execute(interaction) {
|
||||||
const { member, guild, options } = interaction
|
const { member, guild, options } = interaction
|
||||||
await interaction.deferReply({ ephemeral: false }).catch(err => console.error(`There was a problem deferring an interaction: `, err));
|
await interaction.deferReply({ ephemeral: false }).catch(err => console.error(`There was a problem deferring an interaction: `, err));
|
||||||
dig.query({
|
GameDig.query({
|
||||||
type: 'minecraft',
|
type: 'minecraft',
|
||||||
host: process.env.MCHOST,
|
host: process.env.MCHOST,
|
||||||
port: process.env.MCHOSTPORT,
|
port: process.env.MCHOSTPORT,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue