Skip to content
This repository has been archived by the owner on Dec 22, 2019. It is now read-only.

Latest commit

 

History

History
34 lines (27 loc) · 873 Bytes

README.md

File metadata and controls

34 lines (27 loc) · 873 Bytes

PyPI version

Python Discord Bot Index API Wrapper 🎉

API Wrapper for Discord Bot Index

What does this wrapper do?

  • Posts bot GUILD_COUNT to DBI.
  • Fetches bot information/stats

How do I use this?

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