From 73567576f41b1f98c66a33a7242f4d83e80a3042 Mon Sep 17 00:00:00 2001 From: Expand-sys Date: Tue, 19 Oct 2021 09:32:50 +1100 Subject: [PATCH] fix --- commands/moderation/mc.js | 3 +++ commands/moderation/whitelist.js | 2 ++ index.js | 2 -- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/commands/moderation/mc.js b/commands/moderation/mc.js index a841ef9..58b9243 100644 --- a/commands/moderation/mc.js +++ b/commands/moderation/mc.js @@ -4,6 +4,9 @@ const got = require("got"); const { Rcon } = require("rcon-client"); const { spawn } = require("child_process"); +const rconpass = process.env.RCONPASS; +const host = process.env.HOST; + module.exports = { name: "mc", description: "send a Minecraft command", diff --git a/commands/moderation/whitelist.js b/commands/moderation/whitelist.js index 201859f..93897db 100644 --- a/commands/moderation/whitelist.js +++ b/commands/moderation/whitelist.js @@ -3,6 +3,8 @@ const got = require("got"); const { Rcon } = require("rcon-client"); const { spawn } = require("child_process"); +const rconpass = process.env.RCONPASS; +const host = process.env.HOST; module.exports = { name: "whitelist", diff --git a/index.js b/index.js index 6c662dc..016e1e7 100644 --- a/index.js +++ b/index.js @@ -10,8 +10,6 @@ const dotenv = require("dotenv"); dotenv.config(); const prefix = process.env.PREFIX; -const rconpass = process.env.RCONPASS; -const host = process.env.HOST; const client = new Client({ intents: [