changed working directory

This commit is contained in:
MrGeorgen
2020-06-29 14:57:59 +02:00
parent 1d0f13a522
commit a9c5071e88
2 changed files with 3 additions and 3 deletions

View File

@ -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": {

View File

@ -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;