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: [