Docstrings, logging in websocket example

This commit is contained in:
DarkCat09 2022-06-17 12:30:58 +04:00
parent 72135f41fc
commit 9f0610e5a7
9 changed files with 423 additions and 58 deletions

View file

@ -1,9 +1,15 @@
import asyncio
import logging
from getpass import getpass
from python_aternos import Client, atwss
user = input('Username: ')
pswd = getpass('Password: ')
logs = input('Show detailed logs? (y/n) ').strip().lower() == 'y'
if logs:
logging.basicConfig(level=logging.DEBUG)
aternos = Client.from_credentials(user, pswd)
s = aternos.list_servers()[0]