vitallist.js
v1.5.0
Published
The npm package for the VitalList API.
Downloads
8
Maintainers
Readme
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")