python package
This package offers you a more user friendly and easier way to interact with the discord-botlist.eu HTTP api.
Installing
pip install dbleupyQuick Example (belongs in the on_ready event)
from dbleupy import dbleu_postservercount, dbleu_getbotvotes, dbleu_getbotdata
dbleuKEY = "APIKEY" # Get it from https://dev.discord-botlist.eu
r = dbleu_getbotvotes(dbleuKEY, log_disable=False/True)
print(r.content)
# GET ALL BOT VOTES
r = dbleu_getbotdata(dbleuKEY, log_disable=False/True)
print(r.content)
# GET BOTDATA
dbleu_postservercount(dbleuKEY, bot/self.bot)
# POST SERVERCOUNT
# IMPORTANT: The second parameter must be the discord.ext.commands.bot.Bot objectLinks
Last updated