Skip to main content

An async wrapper for BetterCord API

Project description

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

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

bettercord-1.1.0.tar.gz (7.2 kB view details)

Uploaded Source

Built Distribution

bettercord-1.1.0-py3-none-any.whl (9.4 kB view details)

Uploaded Python 3

File details

Details for the file bettercord-1.1.0.tar.gz.

File metadata

  • Download URL: bettercord-1.1.0.tar.gz
  • Upload date:
  • Size: 7.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.10.0

File hashes

Hashes for bettercord-1.1.0.tar.gz
Algorithm Hash digest
SHA256 6baeb43010fc537840594de6821890286d58f5be50881ff31fdae7924bd49832
MD5 1ce62d609ba3d6d46c417846f497121e
BLAKE2b-256 63da3bfabc4f831bbdee6f7659621cff40868c3c69cba15988b84bcd504829af

See more details on using hashes here.

File details

Details for the file bettercord-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: bettercord-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 9.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.10.0

File hashes

Hashes for bettercord-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cea835fba98f113222e15e6e96fe94a996be969824dbc3d6bab734638f60153f
MD5 0353573f4c246e622ba2a00dc4c73fcf
BLAKE2b-256 7d99507d95cfbd3cb0a7beb605f0f48bb60824974fe0eab760139801f3322328

See more details on using hashes here.

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