mirror of
https://github.com/Expand-sys/ccashbot
synced 2025-12-16 23:52:14 +11:00
fix
This commit is contained in:
parent
468b10443f
commit
73567576f4
3 changed files with 5 additions and 2 deletions
|
|
@ -4,6 +4,9 @@ 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 host = process.env.HOST;
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
name: "mc",
|
name: "mc",
|
||||||
description: "send a Minecraft command",
|
description: "send a Minecraft command",
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,8 @@ 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 host = process.env.HOST;
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
name: "whitelist",
|
name: "whitelist",
|
||||||
|
|
|
||||||
2
index.js
2
index.js
|
|
@ -10,8 +10,6 @@ const dotenv = require("dotenv");
|
||||||
|
|
||||||
dotenv.config();
|
dotenv.config();
|
||||||
const prefix = process.env.PREFIX;
|
const prefix = process.env.PREFIX;
|
||||||
const rconpass = process.env.RCONPASS;
|
|
||||||
const host = process.env.HOST;
|
|
||||||
|
|
||||||
const client = new Client({
|
const client = new Client({
|
||||||
intents: [
|
intents: [
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue