/discordbotindex-dbi-python

Python API Wrapper for Discord Bot Index (Maintained by @paixlukee)

Primary LanguagePythonMIT LicenseMIT

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