- Updater finally works
- Removed two unneeded libs
- Updated version
This commit is contained in:
Felix
2016-08-17 18:24:19 +02:00
parent 35e4b93974
commit dce9ecbc37
4 changed files with 87 additions and 101 deletions

View File

@@ -2,8 +2,6 @@ import fs from "fs";
import * as CFG from "../cfg";
import updater from "../updater";
const helpMessage = fs.readFileSync(".help", "utf8");
export function processCommand(cmd, data) {
@@ -41,9 +39,7 @@ export function processCommand(cmd, data) {
this.print(`Saved ${length} player${length === 1 ? "": "s"} into database!`);
break;
case "/update":
updater().then(() => {
// bla
});
eval(fs.readFileSync("update.js", "utf8"));
break;
default:
this.print(`${cmd} is not a valid command!`, 31);