mirror of
https://github.com/Expand-sys/ccashbot
synced 2025-12-16 23:52:14 +11:00
add variable for minecraft location
This commit is contained in:
parent
8e7a2f1901
commit
94a4af2dd8
1 changed files with 2 additions and 2 deletions
|
|
@ -2,7 +2,7 @@ const fs = require("fs");
|
|||
const got = require("got");
|
||||
|
||||
const { spawn } = require("child_process");
|
||||
let minecraftin;
|
||||
let minecraftloc = process.env.MINECRAFTLOC;
|
||||
module.exports = {
|
||||
name: "start",
|
||||
description: "start mc server",
|
||||
|
|
@ -17,7 +17,7 @@ module.exports = {
|
|||
function spawnMC(channel) {
|
||||
let options = {
|
||||
shell: true,
|
||||
cwd: "/CCash/minecraft/",
|
||||
cwd: `${minecraftloc}`,
|
||||
};
|
||||
const minecraft = spawn(
|
||||
"java",
|
||||
|
|
|
|||
Loading…
Reference in a new issue