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;