vcodez-api
v1.2.3
Published
A official disbots.xyz api
Downloads
12
Maintainers
Readme
NPM: npmjs.com/package/vcodez-api
Installation
If you have trouble with the installation, please feel free to visit our discord address.
npm i vcodez-api
1. Where can I get vcodez-api.xyz api?
Ans: JavaScript Python
2. How do I install it?
Ans: JavaSciprt: npm i vcodez-api or npm install vcodez-api Python: pip install vcodez-api
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 vcodez-api = require("vcodez-api");
const dbl = new vcodez-api("TOKEN-HERE", client);
// you get the token from the bots profile @ https://vcodez-api.xyz
client.on("ready", async () => {
dbl.serverCount();
console.log("Server count posted")
Python: (In Development)
from vcodez-api import vcodez-api
from discord.ext import commands, tasks
client = commands.Bot(command_prefix="!")
dbl = vcodez-api(client,"token of vcodez-api")
@tasks.loop(minutes = 10)
async def postservercount():
await dbl.serverCountPost()
@client.event
async def on_ready():
postservercount.start()
client.run("token")
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 vcodez-api = require("vcodez-api");
const dbl = new vcodez-api("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: