discord-ext-rx-0.1.0
توضیحات
Combine RxPy with discord.py.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | discord-ext-rx-0.1.0 |
| نام | discord-ext-rx |
| نسخه کتابخانه | 0.1.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | NCPlayz |
| ایمیل نویسنده | chowdhurynadir0@outlook.com |
| آدرس صفحه اصلی | https://github.com/NCPlayz/discord-ext-rx |
| آدرس اینترنتی | https://pypi.org/project/discord-ext-rx/ |
| مجوز | MIT |
# discord-ext-rx
> Work In Progress!
Combine [RxPy](https://github.com/ReactiveX/RxPy) with [discord.py](https://github.com/Rapptz/discord.py).
## Example
```py
from discord.ext.rx import RxBot, _
from rx import operators as ops
bot = RxBot()
bot.messages.pipe(
ops.filter(lambda m: m.author.id == 121678432504512512),
ops.filter(lambda m: m.content == '418'),
ops.map(lambda m: m.channel)
).subscribe(
_(lambda c: c.send("I'm a teapot!"))
)
bot.run('token')
```
نیازمندی
| مقدار | نام |
|---|---|
| >0.16.12 | discord.py |
| - | rx |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6.0 | Python |
نحوه نصب
نصب پکیج whl discord-ext-rx-0.1.0:
pip install discord-ext-rx-0.1.0.whl
نصب پکیج tar.gz discord-ext-rx-0.1.0:
pip install discord-ext-rx-0.1.0.tar.gz