mirror of
https://github.com/Expand-sys/ccashbot
synced 2025-12-16 23:52:14 +11:00
fix for whitelist command
This commit is contained in:
parent
af516999ad
commit
3578bc9944
2 changed files with 3 additions and 2 deletions
|
|
@ -16,7 +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);
|
console.log("host");
|
||||||
const rcon = new Rcon({
|
const rcon = new Rcon({
|
||||||
host: `${host}`,
|
host: `${host}`,
|
||||||
port: 25575,
|
port: 25575,
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ const got = require("got");
|
||||||
const { Rcon } = require("rcon-client");
|
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: "whitelist",
|
name: "whitelist",
|
||||||
|
|
@ -15,6 +15,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,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue