mirror of
https://github.com/maierfelix/POGOserver.git
synced 2026-10-26 18:09:47 -05:00
Update
- Added basic updater - Handle asset download error
This commit is contained in:
@@ -203,4 +203,4 @@ export function getUserQueryData(obj) {
|
||||
obj.email
|
||||
]);
|
||||
|
||||
}
|
||||
}
|
||||
10
src/index.js
10
src/index.js
@@ -87,8 +87,14 @@ class GameServer {
|
||||
password: CFG.SERVER_POGO_CLIENT_PASSWORD,
|
||||
downloadModels: false
|
||||
}).then((asset) => {
|
||||
this.print("Created asset download session");
|
||||
resolve(asset);
|
||||
if (asset && asset.digest && asset.digest.length) {
|
||||
this.print("Created asset download session");
|
||||
resolve(asset);
|
||||
}
|
||||
else {
|
||||
this.print("Failed to download asset digest!", 31);
|
||||
return void 0;
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
@@ -2,6 +2,8 @@ import fs from "fs";
|
||||
|
||||
import * as CFG from "../cfg";
|
||||
|
||||
import updater from "../updater";
|
||||
|
||||
const helpMessage = fs.readFileSync(".help", "utf8");
|
||||
|
||||
export function processCommand(cmd, data) {
|
||||
@@ -38,6 +40,11 @@ export function processCommand(cmd, data) {
|
||||
var length = this.clients.length;
|
||||
this.print(`Saved ${length} player${length === 1 ? "": "s"} into database!`);
|
||||
break;
|
||||
case "/update":
|
||||
updater().then(() => {
|
||||
// bla
|
||||
});
|
||||
break;
|
||||
default:
|
||||
this.print(`${cmd} is not a valid command!`, 31);
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user