it works like this
instead of typing codes on codes like:
Code: Select all
import requests
online = requests.get("http://eliatopiaapi.com/TotalOnline").json()
print(online)
Code: Select all
from Eliatopia_Library.elia import Eliatopia
Eliatopia = Eliatopia("0.1.9")
Eliatopia.getOnline() #prints the total amount of in game players in the console
or if you want to make that in a discord bot you can do :
Eliatopia.getOnlineDiscord(ctx) #sends the following string "Players Online: amountofplayers" in the channel where the command was executed,
you can install it by doing
"python3/python/pip3 install Eliatopia.py"
more info:
https://pypi.org/project/Eliatopia.py/
https://github.com/AI3x3y/Eliatopia_Library
Enjoy!