This commit is contained in:
Expand-sys 2021-10-19 09:35:12 +11:00
parent 73567576f4
commit c5f0808867

View file

@ -5,7 +5,7 @@ const { Rcon } = require("rcon-client");
const { spawn } = require("child_process"); const { spawn } = require("child_process");
const rconpass = process.env.RCONPASS; const rconpass = process.env.RCONPASS;
const host = process.env.HOST; const host = process.env.MCHOST;
module.exports = { module.exports = {
name: "mc", name: "mc",
@ -16,6 +16,7 @@ module.exports = {
if (!args) { if (!args) {
return message.reply("OI you need to specify the command you want"); return message.reply("OI you need to specify the command you want");
} else { } else {
console.log(host);
const rcon = new Rcon({ const rcon = new Rcon({
host: `${host}`, host: `${host}`,
port: 25575, port: 25575,