Skip to main content

A simple and easy-to-use unofficial python wrapper around the Electro discord bot list api

Project description

Edblpy

travis Documentation Status License
Edblpy is an unofficial python module utilizing the electro discord bot list [api](https://www.edbl.xyz/api) . Easy to use and well documented!

Getting started

  • You must have ython 3*
  • A bot's / user's id
  • Install the module using pip : pip install edblpy
  • Import what you need : from edblpy import Bot or from edblpy import User
  • View more about usage in the docs section

Docs

Class : Bot

Params ( name , description , type , default )

id : The bot's id (Required when retrieving info) : integer : None token : Your token (Required when posting the bot's status) : string : None

Methods ( name , description , params , returns)

get_info : Gets the bot's info : None : Dict post_status : Posts the server/user count to the DB , requires auth : user_count , server_count : Dict

Class : User

Params ( name , description , type , default )

id : The user's id (Required) : integer : None

Methods ( name , description , params , returns)

get_info : Gets the user's info : None : Dict

Examples

Getting a user's info

from edblpy import User
jake = User(480407581085532180)
print(jake.get_info())

Getting a bot's info

from edblpy import Bot
mika = Bot(631669116926820353)
print(mika.get_info())

Posting a bot's status

from edblpy import Bot
mika = Bot(631669116926820353 , 'YOUR_SUPER_SECRET_TOKEN')
print(mika.post_status(user_count=100 , server_count=100)) # you should probably make the counts dynamic

Project details


Download files

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

Source Distribution

edblpy-1.4.0.tar.gz (2.9 kB view hashes)

Uploaded Source

Built Distribution

edblpy-1.4.0-py3-none-any.whl (3.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page