ggejs
Version:
A powerful Node.js module for interacting with the server of Goodgame Empire & Goodgame Empire: Four Kingdoms
16 lines (15 loc) • 589 B
JavaScript
const {execute: abl} = require("./abl");
const {getAllianceInfo} = require("../ain");
const EmpireError = require("../../tools/EmpireError");
module.exports.name = "aug";
/**
* @param {BaseClient} client
* @param {number} errorCode
* @param {{STO: Object, ABL:Object}} params
*/
module.exports.execute = function (client, errorCode, params) {
const cud = client.clientUserData;
cud.myAlliance.parseStorage(params.STO);
abl(client, errorCode, params.ABL);
getAllianceInfo(client, cud.allianceId).catch(e => client.logger.w(new EmpireError(client, e)));
}