-
Notifications
You must be signed in to change notification settings - Fork 0
Lets start coding!
Fin-GITHUB edited this page Apr 1, 2024
·
1 revision
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}.")```