Skip to main content

An async wrapper for BetterCord API

Project description

bettercord.py

Python враппер для BetterCord API


Установка

pip install bettercord

Важно!

Враппер асинхронен, поэтому любые вызовы методов следует выполнять только в асинхронных функциях!


Использование

Начало

  • Импортируем библиотеку
import bettercord
  • Инициализируем клиент
client = bettercord.Client("API токен")

Если ваш бот использует библиотеку не discord.py, то вам следует инициализировать клиент следующим образом:

client = bettercord.Client("API токен", fork_name="название библиотеки")

Боты

Получение информации о боте

bot_info = await client.get_bot_info(bot_id)

Получение всех комментариев к боту

bot_comments = await client.get_bot_comments(bot_id)

Отправка статистики

status = await client.post_stats(server_count, shard_count)

Автоматическая отправка статистики

client.run(bot)

Пользователи

Получение профиля пользователя

user_info = await client.get_user(user_id)

Получение информации о голосе за бота

status = await client.check_vote(user_id)

Сервера

Получение информации о сервере

server_info = await client.get_server_info(server_id)

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.0.0.tar.gz (6.1 kB view details)

Uploaded Source

Built Distribution

bettercord-1.0.0-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for bettercord-1.0.0.tar.gz
Algorithm Hash digest
SHA256 8e2e6992cfa77d39ad3b0e562449e6042efa57f256ca30159e91b6d2b685720e
MD5 68ef80a0c63b0c25e12a2f9ec104e9f4
BLAKE2b-256 7b133f5f761e744ddddaee65687a4a08e354ae902e557f0ed530d874f3e708a9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: bettercord-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 7.8 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.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 854c58ccf66b28348eb2339bacff70cd12a9386c59b281e57ea18760273c4f5b
MD5 162e97f9f7993b50c604b74fede336af
BLAKE2b-256 9544931f3f5c889796c315c41a96d7e1ee942ca2daca3cfd82dde5e1ff666290

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