Skip to content

Control Moomoo.io clients through Node.js.

License

Notifications You must be signed in to change notification settings

Nebula-Developers/Moomoo.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Moomoo.js

Control Moomoo.io clients through Node.js.

Installation

Install it with this NPM command:

npm install git+https://github.com/Nebula-Developers/Moomoo.js.git

Alternative, use Yarn:

yarn add https://github.com/Nebula-Developers/Moomoo.js

Usage

This module exports the client class and a utility function that allows you to get server information to connect with.

const moo = require("moomoo");

async function start() {
    const server = await moo.parseServerLink("http://moomoo.io/?server=8:21:0");

    const bot = moo.MoomooClient(server);
    bot.addEventListener("socketOpen", () => {
        bot.spawn();
    });
}
start();