Library for interacting with fortnite services
Project description
fortnitepy-edit
Asynchronous library for interacting with Fortnite and EpicGames' API and XMPP services.
Note: This library is still under developement so breaking changes might happen at any time.
Some key features:
- Full support for Friends.
- Support for XMPP events including friend and party messages + many more.
- Support for Parties.
- Support for Battle Royale stats.
Documentation
https://fortnitepy.readthedocs.io/en/latest/
Installing
# windows
py -3 -m pip install -U git+https://github.com/klldtest/fortnitepy-edit
py -3 -m pip install -U fortnitepy-edit
# linux
python3 -m pip install -U git+https://github.com/klldtest/fortnitepy-edit
python3 -m pip install -U fortnitepy-edit
Basic usage
import fortnitepy
import asyncio
from fortnitepy.ext import commands
async def main():
bot = commands.Bot(
command_prefix='!',
auth=fortnitepy.DeviceCodeAuth()
)
@bot.event
async def event_ready():
print('----------------')
print('Bot ready as')
print(bot.user.display_name)
print('----------------')
@bot.event
async def event_friend_request(request):
await request.accept()
@bot.command()
async def hello(ctx):
await ctx.send('Hello!')
await bot.start()
if __name__ == "__main__":
asyncio.run(main())
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
fortnitepy_edit-1.1.6.tar.gz
(156.9 kB
view details)
Built Distribution
File details
Details for the file fortnitepy_edit-1.1.6.tar.gz
.
File metadata
- Download URL: fortnitepy_edit-1.1.6.tar.gz
- Upload date:
- Size: 156.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7f6c2ac868ef3d4641248864c757ae36d07153c2993971e5ce86b4b874afa1e7 |
|
MD5 | 0ff3d2adeb12decf8522beded366fa59 |
|
BLAKE2b-256 | c0e6e902ef341eb1d4a76e00ce0da8f9a0bb08736c444b9d701a51f8a85fb474 |
File details
Details for the file fortnitepy_edit-1.1.6-py3-none-any.whl
.
File metadata
- Download URL: fortnitepy_edit-1.1.6-py3-none-any.whl
- Upload date:
- Size: 182.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5e86b7f31a8d29b1399b65e814a49d11f7da085b955ba273940a30daf24712e5 |
|
MD5 | 2fa87974edac866e97f24d959ae51d75 |
|
BLAKE2b-256 | 17fdc3ed00529e7c5a97f31fd9ac0dcf63b7ddc155108ac3d5bb089869566813 |