Discode.py-1.1.1
توضیحات
Asynchronous Python API wrapper for the Discord Gateway API and Discord REST API.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | Discode.py-1.1.1 |
| نام | Discode.py |
| نسخه کتابخانه | 1.1.1 |
| نگهدارنده | ['TheFarGG'] |
| ایمیل نگهدارنده | [] |
| نویسنده | TheFarGG |
| ایمیل نویسنده | - |
| آدرس صفحه اصلی | https://github.com/thefargg/discode |
| آدرس اینترنتی | https://pypi.org/project/Discode.py/ |
| مجوز | MIT |
# Discode
Discode is an asynchronous Python API wrapper for the Discord REST and Gateway API. This project was inspired by [Discord.py](https://github.com/rapptz/discord.py) and may contain similar functioning.
### Basic Example Usage
```py
import discode
client = discode.Client()
# the coroutine under the decorator
# can have any name you wish to use
@client.on_event("ready")
async def ready():
print(f"{client.user} is ready!")
@client.on_event("message")
async def message(message: discode.Message):
content = message.content
if content.startswith("?hi"):
await message.channel.send("Hiii!!!")
client.start("YOUR-TOKEN-HERE")
```
نیازمندی
| مقدار | نام |
|---|---|
| - | aiohttp |
| - | websockets |
| - | sphinx |
| - | furo |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.7.0 | Python |
نحوه نصب
نصب پکیج whl Discode.py-1.1.1:
pip install Discode.py-1.1.1.whl
نصب پکیج tar.gz Discode.py-1.1.1:
pip install Discode.py-1.1.1.tar.gz