2021-08-24 21:20:10 +03:00
|
|
|
|
Metadata-Version: 2.1
|
|
|
|
|
Name: boticordpy
|
2021-09-09 17:34:40 +03:00
|
|
|
|
Version: 1.3.6
|
2021-08-24 21:20:10 +03:00
|
|
|
|
Summary: Simple Python Module for boticord api
|
|
|
|
|
Home-page: https://github.com/grey-cat-1908/boticordpy
|
|
|
|
|
Author: KerdokuCat
|
|
|
|
|
Author-email: support@kerdoku.top
|
|
|
|
|
License: MIT
|
|
|
|
|
Platform: UNKNOWN
|
|
|
|
|
Classifier: License :: OSI Approved :: MIT License
|
|
|
|
|
Classifier: Programming Language :: Python :: 3
|
|
|
|
|
Classifier: Programming Language :: Python :: 3.7
|
|
|
|
|
Description-Content-Type: text/markdown
|
2021-09-09 17:34:40 +03:00
|
|
|
|
License-File: LICENSE.txt
|
|
|
|
|
|
|
|
|
|
<h1 align="center">Boticordpy</h1>
|
|
|
|
|
|
|
|
|
|
<p align="center">Модуль для работы с <a href="https://boticord.top/">Boticord</a> API</p>
|
|
|
|
|
|
|
|
|
|
<p align="center">
|
|
|
|
|
|
|
|
|
|
<img src="https://img.shields.io/pypi/dm/boticordpy" alt="">
|
|
|
|
|
</p>
|
|
|
|
|
|
|
|
|
|
---
|
|
|
|
|
* [Документация](https://boticordpy.readthedocs.io/)
|
|
|
|
|
* [Исходный код](https://github.com/grey-cat-1908/boticordpy)
|
|
|
|
|
---
|
|
|
|
|
|
|
|
|
|
### Примеры
|
|
|
|
|
|
|
|
|
|
Публикуем статистику нашего бота в Boticord.
|
|
|
|
|
|
|
|
|
|
```Python
|
|
|
|
|
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_ready():
|
|
|
|
|
stats = {"servers": len(bot.guilds), "shards": bot.shard_count, "users": len(bot.users)}
|
|
|
|
|
await boticord.Bots.postStats(stats)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
bot.run("your-bot-token")
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|