mirror of
https://github.com/boticord/boticordpy.git
synced 2024-09-22 19:32:01 +03:00
An API wrapper for BotiCord API written in Python
boticordpy | ||
boticordpy.egg-info | ||
docs | ||
examples | ||
.gitignore | ||
LICENSE.txt | ||
README.md | ||
requirements.txt | ||
setuo.cfg | ||
setup.py |
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")