1.1.1 • Published 2 years ago

venge-io.js v1.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Venge-io.js

A lightweight Node.js module for Venge.io private api 🔫

Warning ⚠

venge.io devs recently changed their login mechanism and now it also requires the grecaptcha token. Therefore, I suggest logging in via hash.

Table Of Contents

Installation

    npm install venge-io.js

Example

    const { Venge } = require('venge-io.js');

    const venge = new Venge('USERNAME', 'PASSWORD', 'GRECHAPTA_TOKEN');
    // Constructor variables are optional.

    (async () => {
        await venge.login('USERNAME', 'PASSWORD', 'GRECHAPTA_TOKEN');
        // Variables are optional if already specified in constructor.

        // or you can login via hash
        venge.setHash('HASH');

        venge.getStatus()
        .then(data => {
            console.log(`There are ${data.online} players online`);
        });

        const balance = await venge.getCoinDetails();
        console.log(`Your balance is ${balance.balance}`);

        setTimeout(() => {
            venge.logout();
            process.exit();
        }, 3500);
    })();
1.1.1

2 years ago

1.1.0

2 years ago

1.0.0

2 years ago