codexy-api
v1.0.0
Published
A official http://codexy.glitch.me api.
Downloads
2
Maintainers
Readme
codexy-api
Support: http://codexy.glitch.me/dc
Installation
If you have trouble with the installation, please feel free to visit our discord address.
npm i codexy-api
Getting Started
Base URL: http://codexy.glitch.me/api/
const vc = require("codexy-api")
Has Voted
{
"user": "",
"hasvote": "false/true"
}
let a = await vc.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 vc.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 vc.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}]
`)
}