EnkaNetwork.py/example/languege.py
Dee Dev 3ec03d9b06 Upgrade EnkaNetwork.py
- add http client
- update example

- add aenter, aexit for auto close client
2022-08-04 20:56:23 +07:00

15 lines
371 B
Python

import asyncio
from enkanetwork import EnkaNetworkAPI
client = EnkaNetworkAPI(lang="th", debug=True)
async def main():
async with client:
# Change language to "en"
client.lang = "en"
# Or you can use set_language() function (EN -> TW)
await client.set_language("cht")
loop = asyncio.get_event_loop()
loop.run_until_complete(main())