starbotlist.js

1.0.1-beta • Public • Published

Botcase.js

Join our discord
Support: https://botcase.xyz/dc

Announcemenets / Duyurular

🇹🇷 - Sadece bizim bot list altyapımızda çalışabilir.
🇺🇸 - It can only work in our bot list infrastructure.

Installation

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

  • npm i botcase.js

Getting Started

  • Base URL: https://botcase.xyz/api/
  • const vc = require("botcase.js")

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}]
  `)
  }

Package Sidebar

Install

npm i starbotlist.js

Weekly Downloads

1

Version

1.0.1-beta

License

MIT

Unpacked Size

4.76 kB

Total Files

4

Last publish

Collaborators

  • kalashiexe