1.0.8 • Published 3 years ago

astrobotlist.js v1.0.8

Weekly downloads
-
License
CC0 1.0
Repository
-
Last release
3 years ago

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