An API wrapper for BotiCord API written in Python
Find a file
2021-08-24 21:20:10 +03:00
boticordpy fix setup.py 2021-08-24 21:20:10 +03:00
boticordpy.egg-info fix setup.py 2021-08-24 21:20:10 +03:00
docs fix setup.py 2021-08-24 21:20:10 +03:00
examples fix setup.py 2021-08-24 21:20:10 +03:00
.gitignore fix setup.py 2021-08-24 21:20:10 +03:00
LICENSE.txt fix setup.py 2021-08-24 21:20:10 +03:00
README.md fix setup.py 2021-08-24 21:20:10 +03:00
requirements.txt fix setup.py 2021-08-24 21:20:10 +03:00
setuo.cfg fix setup.py 2021-08-24 21:20:10 +03:00
setup.py fix setup.py 2021-08-24 21:20:10 +03:00

Boticordpy

Модуль для работы с Boticord API



Примеры

Публикуем статистику нашего бота в Boticord.

from discord.ext import commands

from boticordpy import BoticordClient

bot = commands.Bot(command_prefix="!")
boticord = BoticordClient(bot, "your-boticord-token")


@bot.event
async def on_connect():
    stats = {"servers": len(bot.guilds), "shards": bot.shard_count, "users": len(bot.users)}
    await boticord.Bots.postStats(stats)


bot.run("your-bot-token")