astrobotlist.js

1.0.8 • Public • Published

Astrobotlist

Join our discord
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

Package Sidebar

Install

npm i astrobotlist.js

Weekly Downloads

1

Version

1.0.8

License

CC0 1.0

Unpacked Size

3.29 kB

Total Files

3

Last publish

Collaborators

  • glitched_king