3.3.0 • Published 4 years ago

vultrex.api v3.3.0

Weekly downloads
15
License
MIT
Repository
github
Last release
4 years ago

vultrex.api

Feature-rich yet lightweight API wrapper for Vultrex.

Installation

Node.js LTS or newer is required.

npm install vultrex.api

Usage

Post server/shard count to the API

const { Client } = require('discord.js');
const { VultrexClient } = require('vultrex.api');

const client = new Client();
const vultrex = new VultrexClient('Vultrex API key', client.user.id);

client.on('ready', async () => {
  const serverCount = client.guilds.cache.size;
  await vultrex.post(serverCount);
});

client.login('CLIENT TOKEN');

Retrieve the bot's votes

const { VultrexClient } = require('vultrex.api');
const vultrex = new VultrexClient('Vultrex API key', '1234567890');

vultrex.getVotes().then(console.log).catch(console.error);

Retrieve the bot's information

const { VultrexClient } = require('vultrex.api');
const vultrex = new VultrexClient('Vultrex API key');

vultrex.getBot().then(console.log).catch(console.error);

Links

3.3.0

4 years ago

3.2.1

4 years ago

3.2.0

4 years ago

3.1.1

4 years ago

3.1.0

4 years ago

3.0.0

4 years ago

2.0.1

4 years ago

2.0.0

4 years ago

1.3.10

4 years ago

1.3.9

4 years ago

1.3.8

4 years ago

1.3.7

4 years ago

1.3.6

4 years ago

1.3.5

4 years ago

1.3.4

4 years ago

1.3.3

4 years ago

1.3.2

4 years ago

1.3.1

4 years ago

1.3.0

4 years ago

1.2.1

4 years ago

1.2.0

4 years ago

1.1.0

4 years ago

1.0.0

4 years ago