astrobotlist.js
v1.0.8
Published
A official astrobotlist.co api.
Downloads
10
Maintainers
Readme
Astrobotlist
Support: https://astrobotlist.co/dc NPM: npmjs.com/package/astrobotlist.js
Installation
If you have trouble with the installation, please feel free to visit our discord address.
npm i astrobotlist.js
Define Module & Client
const Discord = require("discord.js");
const client = new Discord.Client();
const vCodes = require("astrobotlist.js");
const dbl = new vCodes("TOKEN-HERE", client);
client.login("MTk4NjIyNDgzNDcxOTI1MjQ4.Cl2FMQ.ZnCjm1XVW7vRze4b7Cq4se7kKWs");
Server Count & Shard Count Posting
client.on("ready", async () => {
dbl.serverCount();
/*
-> Server count posted.
or
-> Server count & shard count posted.
*/
});
Vote Checking
let hasVote = await dbl.hasVoted("714451348212678658"); // -> User ID
if(hasVote === true) {
console.log("Voted")
} else {
console.log("Vote please.")
}
// -> Vote please.
Search on astrobotlist
let botFind = await dbl.search("779641401482805289");
console.log(botFind.username) // -> Allegro