Skip to content

Lets start coding!

Fin-GITHUB edited this page Apr 1, 2024 · 1 revision

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}.")```
Clone this wiki locally