BenBotAsync-3.0.2
توضیحات
Asynchronous Python wrapper for BenBot API.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | BenBotAsync-3.0.2 |
| نام | BenBotAsync |
| نسخه کتابخانه | 3.0.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | xMistt |
| ایمیل نویسنده | - |
| آدرس صفحه اصلی | https://github.com/xMistt/BenBot |
| آدرس اینترنتی | https://pypi.org/project/BenBotAsync/ |
| مجوز | - |
# BenBotAsync
Python wrapper for the BenBot API.
[](https://pepy.tech/project/benbotasync)
[](https://pypi.org/project/BenBotAsync/)
[](https://pypi.org/project/BenBotAsync/)
## Installing:
### ~~Synchronous~~: **Deprecated, use the async version.**
~~Windows:~~ ``py -3 -m pip install BenBot``<br>
~~Linux/macOS:~~ ``python3 -m pip install BenBot``
### Asynchronous:
Windows: ``py -3 -m pip install BenBotAsync``<br>
Linux/macOS: ``python3 -m pip install BenBotAsync``
## Examples:
```py
import BenBotAsync
import asyncio
async def ben_search():
result = await BenBotAsync.get_cosmetic(
lang="en",
searchLang="en",
matchMethod="full",
name="Ghoul Trooper"
)
print(result.id)
loop = asyncio.get_event_loop()
loop.run_until_complete(ben_search())
```
This would output:<br>
```CID_029_Athena_Commando_F_Halloween```
fortnitepy example:
```py
import fortnitepy
import BenBotAsync
client = fortnitepy.Client(
auth=fortnitepy.EmailAndPasswordAuth(
email='example@email.com',
password='password123'
)
)
@client.event
async def event_friend_message(message: fortnitepy.FriendMessage) -> None:
args = message.content.split()
split = args[1:]
content = " ".join(split)
if args[0] == '!skin':
skin = await BenBotAsync.get_cosmetic(
lang="en",
searchLang="en",
matchMethod="contains",
name=content,
backendType="AthenaCharacter"
)
await client.user.party.me.set_outfit(asset=skin.id)
client.run()
```
You can check out the documentation for BenBotAsync [here](https://stoplight.io/p/docs/gh/xMistt/BenBotAsync).
نیازمندی
| مقدار | نام |
|---|---|
| - | aiohttp |
نحوه نصب
نصب پکیج whl BenBotAsync-3.0.2:
pip install BenBotAsync-3.0.2.whl
نصب پکیج tar.gz BenBotAsync-3.0.2:
pip install BenBotAsync-3.0.2.tar.gz