Skip to content

PirxcyFinal/GummyAsync

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 

Repository files navigation

GummyFNAsync

Python wrapper for the GummyFn API.

Downloads Requires: Python 3.x Version: 1.0.0

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()

About

An API Wrapper For GummyFNAPI

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages