evades-js

1.0.1 • Public • Published

evades-js / EJS

Node.js library for Evades.IO.

Installing: npm i evades-js.
REQUIRES NODE.JS 12.0+!

Nodejs

Example

const EJS = require("evades-js");
const bot = new EJS.Client({
    username: "your username",
    password: "your password"
});

bot.on("join", () => {
    console.log("Connected! Nickname: " + bot.username);
});

Events

open - Opened WebSocket connection.
close - Closed WebSocket connection.
join - Joined to the server.
messages - List of messages sent at the same time.
rawMessage - Returns "nickname: message".
chatMessage - Returns ChatMessage class.
message - Decoded WebSocket messages.
playerJoin - Player joined the server.
playerLeft - Player left the server.

Options

HeroType (optional) - Hero type (default: gameDataProtocol.HeroType.MAGMAX).
wss (optional) - Hero type (default: "wss://eu.evades.io/api/game/connect?backend=0&game=0").
sessionCookie (optional) - Session cookie for logging in.
username, password (optional) - Account username and password for logging in.
server (optional) - Server id. (1, 2, 3, 4)
location (optional) - Server location. (eu, us)

Package Sidebar

Install

npm i evades-js

Weekly Downloads

2

Version

1.0.1

License

GPL-3.0 license

Unpacked Size

559 kB

Total Files

5

Last publish

Collaborators

  • scar17off