discord-ipc-0.1.0
توضیحات
Discord IPC
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | discord-ipc-0.1.0 |
| نام | discord-ipc |
| نسخه کتابخانه | 0.1.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | benforster |
| ایمیل نویسنده | benfo1942@gmail.com |
| آدرس صفحه اصلی | https://github.com/benforster/discord-ext-ipc |
| آدرس اینترنتی | https://pypi.org/project/discord-ipc/ |
| مجوز | - |
# discord-ext-ipc
[](https://discord-ext-ipcs.readthedocs.io/en/latest/?badge=latest)
## Example Client
```python
import discord
from discord.ext import ipcs
client = discord.Client(intents=discord.Intents.all())
ipc_client = ipcs.Client(client, "TopSecretKey")
@client.event
async def on_ready():
async with ipc_client:
await ipc_client.connect("ws://localhost/ipc")
@client.event
async def on_ipc_connect():
print("ipc connected")
@client.event
async def on_ipc_close():
print("Ipc closed")
@ipc_client.listen("ready")
async def ipc_ready():
print("ready")
```
نیازمندی
| مقدار | نام |
|---|---|
| - | websockets |
| - | orjson |
نحوه نصب
نصب پکیج whl discord-ipc-0.1.0:
pip install discord-ipc-0.1.0.whl
نصب پکیج tar.gz discord-ipc-0.1.0:
pip install discord-ipc-0.1.0.tar.gz