discordz.xyz

1.0.3 • Public • Published

NPM: npmjs.com/package/discordz

npm installnfo

Installation

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

  • npm i discordz.xyz

1. Where can I get discordz.xyz api?

Ans: JavaScript Python

2. How do I install it?

Ans: JavaSciprt: npm i discordz or npm install discordz Python: pip install discordz

3. Does it have any GitHub Repository?

Ans: Yes It Is Here

4. What is it's uses?

Ans: To get the daily vote count, server count and information about your bot. Examples: avatar, botID, discriminator, shortDescription, prefix, votes, serverCount, ownerID, owner, co-owners, tags, longDescription, certificate etc.

5. How can I get my bot's server count?

Ans: JavaScript:

const discordz = require("discordz.xyz");
const dbl = new discordz("TOKEN-HERE", client);
// you get the token from the bots profile @ https://discordz.xyz

client.on("ready", async () => {
  dbl.serverCount();
  console.log("Server count posted")

6. How can I get my bot's vote count?

Ans:

let hasVote = await dbl.hasVoted("Your-bot-id");
  if(hasVote === true) {
    console.log("Voted")
  } else {
    console.log("Vote please.")
  }
  
  
  let search = await dbl.search("Your-bot-id")
  console.log(search)

7. Full Example?

Ans:

const discordz = require("discordz.xyz");
const dbl = new discordz("TOKEN-HERE", client);

client.on("ready", async () => {
  dbl.serverCount();
  console.log("Server count posted")
  
  let hasVote = await dbl.hasVoted("your-bot-id");
  if(hasVote === true) {
    console.log("Voted")
  } else {
    console.log("Vote please.")
  }
  
  
  let search = await dbl.search("Your-bot-id")
  console.log(search)

  /* SearchResults
  {
    avatar: '',
    botID: '',
    username: '',
    discrim: '',
    shortDesc: '',
    prefix: '? [changable]',
    votes: 25,
    ownerID: '',
    owner: '',
    coowners: [ '' ],
    tags: [ 'Moderation', 'NSFW', 'Music' ],
    longDesc: longDesc,
    certificate: 'Certified'
  }
  */
});

Questions?

Come talk to us here:

discordz.xyz

Package Sidebar

Install

npm i discordz.xyz

Weekly Downloads

0

Version

1.0.3

License

MIT

Unpacked Size

9.18 kB

Total Files

6

Last publish

Collaborators

  • ballisticok