Skip to main content

Asynchronous Python wrapper for BenBot API.

Project description

BenBot

Python wrapper for BenBot.

Requires: Python 3.x BenBot Version: 1.0.1

Installing:

Synchronous:

Windows: py -3 -m pip install BenBot
Linux/macOS: python3 -m pip install BenBot

Asynchronous:

Windows: py -3 -m pip install AsyncBenBot
Linux/macOS: python3 -m pip install AsyncBenBot

Examples:

import BenBotAsync

async def ben_search():
    result = await BenBotAsync.get_cosmetic(
        "Ghoul Trooper",
        params=BenBotAsync.Tags.NAME,
        filter=[BenBotAsync.Filters.TYPE, 'Outfit']
    )

    print(result.id)

loop = asyncio.get_event_loop()
loop.run_until_complete(ben_search())
loop.close()

This would output:
CID_029_Athena_Commando_F_Halloween

fortnitepy example:

import fortnitepy
import BenBotAsync

client = fortnitepy.Client(
    email='example@email.com',
    password='password123'
)

@client.event
async def event_friend_message(message):
    args = message.content.split()
    split = args[1:]
    content = " ".join(split)

    if args[0] == '!skin':
        skin = result = await BenBotAsync.get_cosmetic(
            content,
            params=BenBotAsync.Tags.NAME,
            filter=[BenBotAsync.Filters.TYPE, 'Outfit']
        )

        await client.user.party.me.set_outfit(asset=skin.id)

client.run()

The list of functions is on the Wiki.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

BenBotAsync-1.2.1.tar.gz (4.0 kB view details)

Uploaded Source

File details

Details for the file BenBotAsync-1.2.1.tar.gz.

File metadata

  • Download URL: BenBotAsync-1.2.1.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.7

File hashes

Hashes for BenBotAsync-1.2.1.tar.gz
Algorithm Hash digest
SHA256 6bc3a98ca55031e83415ce8aa6333e0faa4b558a0c11b1bb61b0285d21b09e34
MD5 7dfb75ff73544b35a6319559ea97b7ac
BLAKE2b-256 fe67a7ec3a8047ca6a346bcbf07408aaa7cf361c6b2213343fc184bee35808c9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page