From b92bd36ce031baf593947f2bf7b5687cf57530b9 Mon Sep 17 00:00:00 2001 From: Felix Date: Tue, 16 Aug 2016 07:42:07 +0200 Subject: [PATCH] Client provider configurable - Client provider can get choosed now, either google or ptc --- cfg.js | 1 + package.json | 2 +- src/index.js | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/cfg.js b/cfg.js index 6651135..68d8e9f 100644 --- a/cfg.js +++ b/cfg.js @@ -33,6 +33,7 @@ export const SERVER_MYSQL_USERNAME = "USERNAME"; export const SERVER_MYSQL_PASSWORD = "PASSWORD"; // account used for pogo-asset-downloader lib +export const SERVER_POGO_CLIENT_PROVIDER = "GOOGLE"; // either google or ptc export const SERVER_POGO_CLIENT_USERNAME = "USERNAME"; export const SERVER_POGO_CLIENT_PASSWORD = "PASSWORD"; diff --git a/package.json b/package.json index ec4feb4..8f0c662 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "POGOServer", - "version": "0.2.1", + "version": "0.2.2", "description": "", "repository": { "type": "git", diff --git a/src/index.js b/src/index.js index 40da46a..18777b7 100644 --- a/src/index.js +++ b/src/index.js @@ -82,6 +82,7 @@ class GameServer { return new Promise((resolve) => { pogodown.login({ + provider: String(CFG.SERVER_POGO_CLIENT_PROVIDER).toLowerCase(), username: CFG.SERVER_POGO_CLIENT_USERNAME, password: CFG.SERVER_POGO_CLIENT_PASSWORD, downloadModels: false