1.0.5 • Published 3 years ago

hestibots.js v1.0.5

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

HestiBots.js

The official HestiBots API wrapper for Node.js

Installation

Simply run npm i hestibots.js

Usage

Posting Bot Server Count:

const HestiClient = require('hestibots.js');
const Hesti = new HestiClient('API Key');

Hesti.postStats('Bot ID', SERVER_COUNT, USER_COUNT).then((post) => {
    console.log(post);
}).catch(err => {
    console.error(err);
});

Getting Bot Info:

const HestiClient = require('hestibots.js');
const Hesti = new HestiClient('API Key');

Hesti.getBot('Bot ID').then((bot) => {
    console.log(bot);
}).catch(err => {
    console.error(err);
});

Getting User Info:

const HestiClient = require('hestibots.js');
const Hesti = new HestiClient('API Key');

Hesti.getUser('User ID').then((user) => {
    console.log(user);
}).catch(err => {
    console.error(err);
});

Checking if a user voted your bot:

const HestiClient = require('hestibots.js');
const Hesti = new HestiClient('API Key');

Hesti.getVoted('Bot ID', 'User ID').then((voted) => {
    console.log(voted);
}).catch(err => {
    console.error(err);
});

License

MIT

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago