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

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

License

Notifications You must be signed in to change notification settings

LiquidBlast/discordbotindex-dbi-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

4a00b2b · Dec 23, 2018

History

58 Commits
Dec 23, 2018
Oct 9, 2018
Oct 10, 2018
Dec 23, 2018
Dec 23, 2018
Oct 10, 2018
Dec 23, 2018

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages