Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

edblpy

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

edblpy

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

  • 1.4.0
  • PyPI
  • Socket score

Maintainers
1

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

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc