Merge pull request #5 from SayHelloRoman/master

Delete boticordpy.egg-info
This commit is contained in:
grey-cat-1908 2021-09-17 17:26:57 +03:00 committed by GitHub
commit a909555ed2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 1 additions and 106 deletions

2
.gitignore vendored
View file

@ -6,4 +6,4 @@ __pycache__
.egg-info
dist
docs/_build
.boticordpy.egg-info
boticordpy.egg-info

View file

@ -1,84 +0,0 @@
Metadata-Version: 2.1
Name: boticordpy
Version: 1.4
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
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)
---
### Примеры
#### Без Когов
Публикуем статистику при запуске бота.
```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")
```
#### С Когами
Ког с автоматической публикацией статистики раз в 15 минут + команда для публикации статистики для владельца бота.
```python
from discord.ext import commands
from boticordpy import BoticordClient
class BoticordCog(commands.Cog):
def __init__(self, bot):
self.bot = bot
self.boticord = BoticordClient(self.bot, "your-boticord-token")
self.boticord.start_loop()
@commands.command(name="boticord-update")
@commands.is_owner()
async def boticord_update(self, ctx):
"""
This commands can be used by owner to post stats to boticord
"""
stats = {"servers": len(self.bot.guilds), "shards": 0, "users": len(self.bot.users)}
await self.boticord.Bots.postStats(stats)
def setup(bot):
bot.add_cog(BoticordCog(bot))
```

View file

@ -1,17 +0,0 @@
LICENSE.txt
README.md
setup.py
boticordpy/__init__.py
boticordpy/client.py
boticordpy/config.py
boticordpy/exceptions.py
boticordpy/webhook.py
boticordpy.egg-info/PKG-INFO
boticordpy.egg-info/SOURCES.txt
boticordpy.egg-info/dependency_links.txt
boticordpy.egg-info/requires.txt
boticordpy.egg-info/top_level.txt
boticordpy/modules/__init__.py
boticordpy/modules/bots.py
boticordpy/modules/servers.py
boticordpy/modules/users.py

View file

@ -1 +0,0 @@

View file

@ -1,2 +0,0 @@
discord.py
aiohttp

View file

@ -1 +0,0 @@
boticordpy