ggejs
Version:
A powerful Node.js module for interacting with the server of Goodgame Empire & Goodgame Empire: Four Kingdoms
24 lines (21 loc) • 694 B
JavaScript
const NAME = "aha";
/** @type {CommandCallback<void>[]}*/
const callbacks = [];
module.exports.name = NAME;
/**
* @param {BaseClient} client
* @param {number} errorCode
* @param {Object} params
*/
module.exports.execute = function (client, errorCode, params) {
require('.').baseExecuteCommand(client, undefined, errorCode, params, callbacks);
}
/**
* @param {BaseClient} client
* @param {number} kingdomId
* @return {Promise<void>}
*/
module.exports.allianceHelpAll = function (client, kingdomId = 15) {
const C2SAllianceHelpAllVO = {KID: kingdomId};
return require('.').baseSendCommand(client, NAME, C2SAllianceHelpAllVO, callbacks, () => true);
}