Skip to content

IPLSplatoon/Battlefy-Toolkit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Battlefy-Toolkit

A toolkit to download Battlefy data made by Inkling Research Labs (IPL). Code on Github.

Import prefix is battlefy_toolkit.

Requirements

  • Python 3.9+

DiscordIdResolver

  • Can translate a Discord Id to information.
  • If multiple requests are to be made, a single DiscordIdResolver should be created and resolve_discord_id called multiply.
if __name__ == '__main__':
    from battlefy_toolkit.resolvers.DiscordIdResolver import DiscordIdResolver
    resolver = DiscordIdResolver(f"your.bot.token")
    info1 = resolver.resolve_discord_id(97288493029416960)
    info2 = resolver.resolve_discord_id(763492840038465537)
    print(info1.qualified_username)
    print(info2.qualified_username)

Distribution

The following commands should be entered into the venv console:

Windows:

rmdir /S build
rmdir /S dist
py -m pip install --upgrade build
py -m build
py -m pip install --upgrade twine
py -m twine upload dist/*

Linux:

rm -r build
rm -r dist
python3 -m pip install --upgrade build
python3 -m build
python3 -m pip install --upgrade twine
python3 -m twine upload dist/*

About

A toolkit to download Battlefy data

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages