bettercord
Python wrapper for BetterCord API
Few stats
Installation
pip install bettercord
WARNING!
Wrapper is asynchronous, so any method calls should be performed only is asynchronous functions!
Using
Starting
- Importing module
import bettercord
- Inilialing client
client = bettercord.Client("API token")
If your don't using discord.py or pycord initialize client like this:
client = bettercord.Client("API token", fork_name="module name")
Bots
Getting info about the bot by ID
bot_info = await client.get_bot_info(bot_id)
Getting comments on the bot
bot_comments = await client.get_bot_comments(bot_id)
Sending stats
status = await client.post_stats(server_count, shard_count)
Automatic sending stats
client.run(bot)
Users
Getting user profile by ID
user_info = await client.get_user_info(user_id)
Checking the user's vote for the bot
status = await client.check_bot_vote(user_id)
Servers
Getting info about the server by ID
server_info = await client.get_server_info(server_id)
Checking the user's vore for the server
status = await client.check_server_vote(server_id, user_id)
Links
Metadata
Release files for bettercord 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| bettercord-1.1.0.tar.gz | 7.2 kB | Without provenance | Details for bettercord-1.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| bettercord-1.1.0-py3-none-any.whl | Python 3 | none | any | Details for bettercord-1.1.0-py3-none-any.whl |
Total release size: 16.6 kB
Release files / bettercord-1.1.0.tar.gz
| Download URL | bettercord-1.1.0.tar.gz |
|---|---|
| Size | 7.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6baeb43010fc537840594de6821890286d58f5be50881ff31fdae7924bd49832
|
|
BLAKE2b-256 checksum How to use checksums |
63da3bfabc4f831bbdee6f7659621cff40868c3c69cba15988b84bcd504829af
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.10.0
|
Release files / bettercord-1.1.0-py3-none-any.whl
| Download URL | bettercord-1.1.0-py3-none-any.whl |
|---|---|
| Size | 9.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cea835fba98f113222e15e6e96fe94a996be969824dbc3d6bab734638f60153f
|
|
BLAKE2b-256 checksum How to use checksums |
7d99507d95cfbd3cb0a7beb605f0f48bb60824974fe0eab760139801f3322328
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.10.0
|
Security for bettercord 1.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.