Skip to main content

Async Api wrapper for GummyFN

Project description

GummyFNAsync

Python wrapper for the GummyFn API.

Downloads Requires: Python 3.x BenBot Version: 0.0.1

Setup:

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

Examples:

import GummyFNAsync
import asyncio

async def skinsearch():
    result = await GummyFNAsync.get_cosmetic(
        name="Ghoul Trooper"
    )

    print(result.id)

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

This would output:
CID_029_Athena_Commando_F_Halloween

fortnitepy example:

import GummyFNAsync

import fortnitepy
from fortnitepy.ext import commands

client = commands.Bot(
    command_prefix=prefix
    auth=fortnitepy.AuthorizationCodeAuth(
        code = input('Enter Code\n')
    )

@client.command()
async def skin(ctx, *, item = None):
    if item is None:
        await ctx.send('No Item Was Given Try !skin ikonik')
    else:
        try:
            skin = await GummyFNAsync.get_cosmetic(
                name=content
            )
            await client.party.me.set_outfit(asset=skin.id)
            await ctx.send(f'Skin Set To {skin.name}')
        except GummyFNAsync.exceptions.NotFound:
            await ctx.send(f'Could not find a skin named: {skin}')

            
client.run()

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

GummyFNAsync-1.0.0.tar.gz (3.6 kB view hashes)

Uploaded Source

Supported by

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