async8ball-2.0.9
توضیحات
Asynchronous 8ball response generator.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | async8ball-2.0.9 |
| نام | async8ball |
| نسخه کتابخانه | 2.0.9 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | cryptex |
| ایمیل نویسنده | - |
| آدرس صفحه اصلی | https://github.com/Cryptex-github/async8ball |
| آدرس اینترنتی | https://pypi.org/project/async8ball/ |
| مجوز | Apache-2.0 |
# async8ball
Asynchronous 8ball response generator.
Example:
```py
import async8ball
async def your_function():
response = await async_8ball.response()
```
Deco Example:
```py
from async8ball.decorators import ball_decorator
@ball_decorator
def my_function(**kwargs):
return kwargs['response']
```
Discord.py command implement:
```py
from async8ball.decorators import ball_decorator
@ball_decorator
def my_func(question, **kwargs):
return kwargs['response']
@bot.command()
async def my_command(ctx, *, question:str):
await ctx.send(ball8(question))
```
or
```py
import async8ball
@bot.command(self, ctx, *, question:str):
await ctx.send(await async8ball.response(question))
```
نیازمندی
| مقدار | نام |
|---|---|
| - | aiofile |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.4 | Python |
نحوه نصب
نصب پکیج whl async8ball-2.0.9:
pip install async8ball-2.0.9.whl
نصب پکیج tar.gz async8ball-2.0.9:
pip install async8ball-2.0.9.tar.gz