From a9c5071e88deb86ee4811ec12cfaf6f1b4c2830e Mon Sep 17 00:00:00 2001 From: MrGeorgen Date: Mon, 29 Jun 2020 14:57:59 +0200 Subject: [PATCH] changed working directory --- package.json | 2 +- src/main.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 980b9d1..5242421 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "author": "MrGeorgen", "repository": "git://git.redstoneunion.de/MrGeorgen/2smart2wait.git", "scripts": { - "start": "(cd src && node main.js && cd -)" + "start": "node src/main.js" }, "license": "GPL-3.0-only", "dependencies": { diff --git a/src/main.js b/src/main.js index 29b92fd..9268b74 100644 --- a/src/main.js +++ b/src/main.js @@ -5,14 +5,14 @@ const mc = require('minecraft-protocol'); // to handle minecraft login session const webserver = require('./webserver.js'); // to serve the webserver const opn = require('opn'); //to open a browser window const secrets = require('../secrets.json'); // read the creds -const config = JSON.parse(jsonminify(fs.readFileSync("../config.json", "utf8"))); // read the config +const config = JSON.parse(jsonminify(fs.readFileSync("./config.json", "utf8"))); // read the config const discord = require('discord.js'); const {DateTime} = require("luxon"); const https = require("https"); const prompt = require("prompt"); const ping = require('minecraft-server-util'); const tokens = require('prismarine-tokens'); -const save = "../saveid" +const save = "./saveid" var auth; var stoppedByPlayer = false; var timedStart;