EnkaNetwork.py/example/languege.py

15 lines
371 B
Python
Raw Normal View History

2022-07-18 08:44:53 +00:00
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")
2022-07-18 08:44:53 +00:00
loop = asyncio.get_event_loop()
loop.run_until_complete(main())