UNPKG

ggejs

Version:

A powerful Node.js module for interacting with the server of Goodgame Empire & Goodgame Empire: Four Kingdoms

12 lines 454 B
module.exports.name = "ato"; /** * @param {BaseClient} client * @param {number} errorCode * @param {{ABT:string, ABTV2:string, ES:number, ZNID: number}} params */ module.exports.execute = function (client, errorCode, params) { const apiTokenInfo = {}//new ApiTokenInfoVO(); apiTokenInfo.token = params["ABT"]; apiTokenInfo.tokenExpirationDate = new Date(Date.now() + params["ES"] * 1000); client._apiToken = apiTokenInfo; }