Lets start coding! - fin-github/erlcpy GitHub Wiki
Get started coding
Here is how you would get the amount of players online
import erlclib.erlc as erlc
bot = erlc.ERLC(key="INSERT YOUR KEY")
status: erlc.ServerStatus = bot.get_status()
print(f"There are {status.amount_of_players} players currently online!")
Here is how you would see players:
import erlclib.erlc as erlc
bot = erlc.ERLC(key="INSERT YOUR KEY")
players: list[erlc.Player] = bot.get_players()
print(f"The first player I can see is {players[0].name}.")```