blackcode-api
v1.0.3
Published
BlackCode Botlist İçin API Modülü
Downloads
7
Readme
blackcode-api
Support: https://web.blackcodetr.cf/dc NPM: npmjs.com/package/blackcode-api
Announcemenets / Duyurular
Installation
If you have trouble with the installation, please feel free to visit our discord address.
npm i blackcode-api
Getting Started
Base URL: https://web.blackcodetr.cf/api/
const black = require("blackcode-api")
Has Voted
{
"user": "",
"hasvote": "false/true"
}
let a = await black.hasVoted(botID, userID);
if(a.error) {
console.log("Error: "+a.message)
} else {
if(!a) {
console.log("vote pls")
} else {
console.log("your voted")
}
}
Bot Information
{
"tags": [""],
"coowners": [""],
"votes": "",
"botID": "",
"ownerID": "",
"ownerName": "",
"username": "",
"discrim": "",
"avatar": "",
"longDesc": "",
"shortDesc": "",
"prefix": "",
"certificate": "",
"premium": "",
"status": ""
}
let b = await black.info(botID);
if(b.error) {
console.log("Error: "+b.message)
} else {
console.log(`
{
"tags": [${b.tags}],
"coowners": [${b.coowners}],
"votes": ${b.votes},
"botID": ${b.botID},
"ownerID": ${b.ownerID}
}
`)
}
Bot Search
{
"botID": "",
"votes": "",
"owner": "",
"ownerID": "",
"coowners": []
}
let b = await black.search(value);
if(b.error) {
console.log(`
"error": true,
"message": "${b.message}",
"errorcode": ${b.errorcode}
`)
} else {
console.log(`
"botID": "${b.botID}",
"votes": "${b.votes}",
"owner": "${b.owner}",
"ownerID": "${b.ownerID}",
"coowners": [${b.coowners}]
`)
}