ggejs
Version:
A powerful Node.js module for interacting with the server of Goodgame Empire & Goodgame Empire: Four Kingdoms
38 lines (25 loc) • 1.14 kB
Markdown
A powerful [Node.js](https://nodejs.org) module for interacting with the server
of [Goodgame Empire: Four Kingdoms](https://play.google.com/store/apps/details?id=air.com.goodgamestudios.empirefourkingdoms)
```sh-session
npm install ggejs
```
```js
const {Constants, E4KClient} = require('ggejs');
const networkInstances = require('e4k-data').network.instances.instance;
const worldNetworkInstance = networkInstances.find(i => i.instanceLocaId === "generic_country_world");
const client = new E4KClient(worldNetworkInstance);
client.on('connected', () => {
console.log("Client connected!");
});
client.connect('username', 'password');
```
- [GitHub](https://github.com/476f6f6467616d6553747564696f73/ggejs)
- [npm](https://www.npmjs.com/package/ggejs)
> This content is not affiliated with, endorsed, sponsored, or specifically approved by Goodgame Studios, and Goodgame
> Studios is not responsible for it. For more information,
> see [Goodgame Studios Terms of Use](https://www.goodgamestudios.com/terms_en/#terms).