Skip to main content

The official API package for Toxic's bot list using Python 3

Project description

Welcome to toxicbl.py

this PyPi package helps you get info of bots , users and post data about user / server count with your token on Toxic Bot List

Getting started

You need to import the module first

from toxicbl import bots # or users 

An example about scraping info for bots (Same can be done with users)

bots.get_info('your_id') # returns a usable info object

An example about updating your bot's info (discord.py used)

from toxicbl import data
@client.event
async def on_ready()
  data.update({
'token': 'your_token',
'serversCount' : str(len(client.servers)),
'usersCount' : str(len(client.users))
})

Bot Info Object

Returns an object containing:

bot_tag: String # Bot's tag
avatar_url: String # Bot avatarUrl
library: String # Library of bot
prefix: String # Prefix of bot
short_description: String # Short description of bot in TBL site
long_description: String # Long description of bot in TBL site (contains markdown & html)
owner_tag: String # Full tag of owner
authorize_link: String # Invite link of the bot
server_count: String : Number of servers
user_count: String : Number of users

User Info Object

Returns an object containing:

biography: String # User's biography if set
avatar_url: String # User's avatar url
username: String # User's username
num_of_bots: Integer # Number of bots created by user

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for toxicbl, version 2.3.1
Filename, size File type Python version Upload date Hashes
Filename, size toxicbl-2.3.1-py2-none-any.whl (3.7 kB) File type Wheel Python version py2 Upload date Hashes View hashes
Filename, size toxicbl-2.3.1.tar.gz (2.3 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page