Getting Started
First you wanna make sure you have the package installed,
If you don't then do npm i dscbots.js
in your console!
After you did that it should be installed!
Start by putting this in your index.js.
For a auth token you can head to Dscbots and head to your bot and press edit!
const Dscbots = require('dscbots.js');
const dscbots = new Dscbots.bots(`<Auth token>`);
Now for putting your bots guild amount onto the site you have to do this!
const Dscbots = require('dscbots.js');
const dscbots = new Dscbots.bots(`<Auth token>`);
dscbots.post('serverCount', {
GuildCount: <client>.guilds.cache.size
});
Wanna see if someone voted? Well you can!
const Dscbots = require('dscbots.js');
const dscbots = new Dscbots.bots(`<Auth token>`);
async function checkVote(user) {
const voteData = await dscbots.voted(user);
if (voteData.voted == false) {
return "Not voted!";
} else if (voteData.voted == true) {
return `${voteData.username} has voted for your bot!`
}
}
checkVote('<Discord UserId>')
Wanna see the vote amount of a bot?
const Dscbots = require('dscbots.js');
const dscbots = new Dscbots.bots(`<Auth token>`);
dscbots.fetch('votes', {
BotID: '<Bot ID>'
})
Or maybe if the bot is certified!
const Dscbots = require('dscbots.js');
const dscbots = new Dscbots.bots(`<Auth token>`);
dscbots.fetch('certificate', {
BotID: '<Bot ID>'
});
This was made by Dscbots
Version v.1.0.2
Any version under version v1.0.2 doesn't work anymore!