1.0.2 • Published 1 year ago

goldstar v1.0.2

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

goldstar

NPM: npmjs.com/package/goldstar

Installation

If you have trouble with the installation, please feel free to visit our discord address.

  • npm i goldstar

Define Module & Client

const Discord = require("discord.js");
const client = new Discord.Client();
const goldstar = require("goldstar");
const dbl = new goldstar("TOKEN-HERE", client);

client.login("BotToken");

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 goldstar.js

let botFind = await dbl.search("779641401482805289");
console.log(botFind.username) // -> Allegro
1.0.2

1 year ago

1.0.1

1 year ago