1.5.0 • Published 1 year ago

vitallist.js v1.5.0

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

VitalList NPM Package

The offical NPM Package for interacting with VitalList's API.

npm i vitallist.js

Getting setup

To post your bot's stats to VitalList, you will need a Discord client defined.

const { Client, Events, GatewayIntentBits } = require('discord.js');
const client = new Client({ intents: [GatewayIntentBits.Guilds] });
const vitallist = require('vitallist.js')

POSTing bot's stats

First, define your Discord client, second provide your VitalList APIKey found in your bot's edit page.

vitallist.postStats(client, "APIKey")

GETing bot's info

Provide a Discord bot ID of a bot that is on VitalList

vitallist.fetchBot("botid")

GETing server's info

Provide a Discord server ID of a server that is on VitalServers

vitallist.fetchServer("serverid")

GETing bots's votes

Provide a Discord bot ID of a bot that is on VitalList

vitallist.fetchVotes("botid")

Check Vote from user

Provide a Discord bot ID of a bot that is on VitalList & a Discord id of a user.

vitallist.checkVote("botid", "userid")
1.5.0

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago