This repository has been archived on 2024-07-30. You can view files and clone it, but cannot push or open issues or pull requests.
python-aternos/examples/start_example.py

13 lines
231 B
Python
Raw Normal View History

2022-03-18 18:38:36 +04:00
from getpass import getpass
from python_aternos import Client
user = input('Username: ')
pswd = getpass('Password: ')
aternos = Client.from_credentials(user, pswd)
srvs = aternos.list_servers()
2022-03-18 18:38:36 +04:00
print(srvs)
s = srvs[0]
s.start()