An open API service indexing awesome lists of open source software.

https://github.com/sldless/voidbots

Voidbots Api but in python
https://github.com/sldless/voidbots

Last synced: 12 months ago
JSON representation

Voidbots Api but in python

Awesome Lists containing this project

README

          

## Installation
`pip install voidbots -U`

## Documentation
To see the voidbots docs [click here](https://docs.voidbots.net/).

Before using this module, Please view [Ratelimits](https://docs.voidbots.net/#/ratelimits) and [Caching](https://docs.voidbots.net/#/caching).

## Example
```
import voidbots as vd
from discord.ext.commands import Bot

bot = Bot(command_prefix='vd!')
Void = vd.VoidClient(bot, apikey='Your api key')
@bot.event
async def on_ready()
print(f'{bot.user.name} is online!')
await Void.postStats(bot.user.id, len(bot.guilds), bot.shard_count)
print(f'{bot.user.name} has been posted to Voidbots')

bot.run('Your bot token')
#This is just examples , it should work.
```

## Functions
```
.VoidClient(bot, apikey='Your api key')
await .get_voteinfo('Bot ID','A user id')
await .get_botinfo('Bot ID')
await .postStats(bot.user.id, len(bot.guilds), bot.shard_count or 0)
await .get_analytics(bot.user.id)
await .get_reviews(bot.user.id)
await .widget(bot.user.id, theme='dark or light')
await .get_userinfo("User ID")
await .get_pack("Pack ID")
await .close() #This has a bot_close arg if that is set to true it will close your bot.
```