API Wrapper for Discord Bot Index
- Posts bot
GUILD_COUNT
to DBI. - Fetches bot information/stats
Run this command in your console:
$ pip3 install dbipyt
Import the DBIPyt Module:
from dbipyt import dbipyt
To post your bot's guild count:
client = dbipyt.Client(token='token')
p = await client.post(bot_id='id', guild_count=len(bot.guilds))
print(p)
To fetch bot information:
p = await dbipyt.fetch(bot_id='id', endpoint='endpoint') # if you wish to get the JSON response, do not add the endpoint argument
print(p)
For questions and concerns, submit an issue, or contact me on Discord: lukee#0420