BenBotAsync
Python wrapper for the BenBot API.
Installing:
Synchronous: Deprecated, use the async version.
Windows: py -3 -m pip install BenBot
Linux/macOS: python3 -m pip install BenBot
Asynchronous:
Windows: py -3 -m pip install BenBotAsync
Linux/macOS: python3 -m pip install BenBotAsync
Examples:
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:
CID_029_Athena_Commando_F_Halloween
fortnitepy example:
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.
Metadata
Release files for BenBotAsync 3.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| BenBotAsync-3.0.2.tar.gz | 3.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| BenBotAsync-3.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.2 kB
Release files / BenBotAsync-3.0.2.tar.gz
| Download URL | BenBotAsync-3.0.2.tar.gz |
|---|---|
| Size | 3.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ff99c14612de226d7ef7920550b002657b37eaf23d9cb7569a1c347f62fd5d2b
|
|
BLAKE2b-256 checksum How to use checksums |
5e40c14e1954385d4d97b04f983b4d93e3e9d39444e403f4c7c16c3895ef699e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.13
|
Release files / BenBotAsync-3.0.2-py3-none-any.whl
| Download URL | BenBotAsync-3.0.2-py3-none-any.whl |
|---|---|
| Size | 3.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fcd98a2a80992f5035e718e90612768b74286f77cce96bb4730276713548a830
|
|
BLAKE2b-256 checksum How to use checksums |
0a70ca13c1f1d0d5bf89643003a41a4567a26b656f09ccd5598c93380d105daf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.13
|