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
- Host: GitHub
- URL: https://github.com/sldless/voidbots
- Owner: sldless
- License: mit
- Created: 2021-07-09T03:49:03.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-08-31T02:12:00.000Z (almost 5 years ago)
- Last Synced: 2025-03-14T06:13:15.872Z (over 1 year ago)
- Language: Python
- Size: 12.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.
```