From 3578bc99449d3ebee03224779235a0a6f74ecd2f Mon Sep 17 00:00:00 2001 From: Expand-sys Date: Wed, 20 Oct 2021 20:56:13 +1100 Subject: [PATCH] fix for whitelist command --- commands/moderation/mc.js | 2 +- commands/moderation/whitelist.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/commands/moderation/mc.js b/commands/moderation/mc.js index b626f53..a46e11a 100644 --- a/commands/moderation/mc.js +++ b/commands/moderation/mc.js @@ -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, diff --git a/commands/moderation/whitelist.js b/commands/moderation/whitelist.js index 93897db..431865e 100644 --- a/commands/moderation/whitelist.js +++ b/commands/moderation/whitelist.js @@ -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,