fix for whitelist command

This commit is contained in:
Expand-sys 2021-10-20 20:56:13 +11:00
parent af516999ad
commit 3578bc9944
2 changed files with 3 additions and 2 deletions

View file

@ -16,7 +16,7 @@ module.exports = {
if (!args) {
return message.reply("OI you need to specify the command you want");
} else {
console.log(host);
console.log("host");
const rcon = new Rcon({
host: `${host}`,
port: 25575,

View file

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