Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/chethanyadav456/disbotlist-api
A official api disbotlist
https://github.com/chethanyadav456/disbotlist-api
bot discord discord-bot discord-js npm
Last synced: 27 days ago
JSON representation
A official api disbotlist
- Host: GitHub
- URL: https://github.com/chethanyadav456/disbotlist-api
- Owner: chethanyadav456
- License: mit
- Created: 2021-05-31T11:22:54.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-08-12T00:41:25.000Z (about 2 years ago)
- Last Synced: 2024-09-20T04:18:03.920Z (about 2 months ago)
- Topics: bot, discord, discord-bot, discord-js, npm
- Language: JavaScript
- Homepage: https://disbotlist.xyz
- Size: 18.6 KB
- Stars: 6
- Watchers: 1
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
*NPM:** [npmjs.com/package/disbotlist](https://www.npmjs.com/package/disbotlist/)
## Installation
*If you have trouble with the installation, please feel free to visit our [discord](https://discord.gg/YVn6nUycHU) address.*
- `npm i disbotlist`#### 1. Where can I get DisBotList.xyz api?
Ans: [JavaScript](https://www.npmjs.com/package/disbotlist)
[Python](https://pypi.org/project/disbotlist.py/)#### 2. How do I install it?
Ans: JavaSciprt: npm i disbotlist or npm install disbotlist
Python: pip install disbotlist#### 3. Does it have any GitHub Repository?
Ans: Yes It Is [Here](https://github.com/disbotlist-xyz/disbotlist-api)#### 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:`
```js
const disbot = require("disbotlist");
const dbl = new disbot("TOKEN-HERE", client);client.on("ready", async () => {
dbl.serverCount();
console.log("Server count posted")```
### Python:
```py
from disbotlist import disbotlist
from discord.ext import commandsclient = commands.Bot(command_prefix="!")
dbl = disbotlist(client,"token of disbotlist")@client.event
async def on_ready():
x = await dbl.serverCountPost()
print(x)client.run("token")
```
#### 6. How can I get my bot's vote count?
`Ans:`
```js
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:`
```js
const disbot = require("disbotlist");
const dbl = new disbot("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: 31,
ownerID: '',
owner: '',
coowners: [ '' ],
tags: [ 'Moderation', 'NSFW', 'Music' ],
longDesc: longDesc,
certificate: 'Certified'
}
*/
});```