-
Notifications
You must be signed in to change notification settings - Fork 3
Updating Game Assets
seria edited this page May 13, 2024
·
2 revisions
import enka
# To update Genshin Impact assets
async with enka.GenshinClient() as client:
await client.update_assets()
# To update HSR assets
async with enka.HSRClient() as client:
await client.update_assets()
Note
The language you set for the client doesn't matter, the asset updater updates assets for all languages.
enka-py relies on several game assets to fill-in things like weapon names, stats icons, etc. that are not provided by the API.
To speed up the process, these game assets are downloaded automatically when you first use the client and are stored locally on your machine.
enka-py doesn't know when the local assets are outdated, so you'd need to update them when necessary. How to handle this process is up to you, I personally just run it once every single day with the scheduled task featured in discord.py
Data is fetched from the following sources: