Skip to main content

an package that works with Eliatopia\s Api Keys

Project description

Eliatopia_Library

An easy made library to get data from Eliatopia's api keys.

Quick Example

from Eliatopia_Library.elia import Eliatopia

Eliatopia = Eliatopia("0.0.1") #must specify the version or else you will get a error.

Eliatopia.getOnline() #this will print the amount of players that are currently in game.

Example in a discord bot made in discord.

import discord
from discord.ext import commands
from Eliatopia_Library.elia import Eliatopia

bot = commands.Bot(command_prefix="prefix", description="some random stuff.")

@bot.event
	print("{}\n{}".format(bot.user, bot.user.id))

@bot.command()
async def showPlayers(ctx):
	await Eliatopia.getOnlineDiscord(ctx) #must add ctx between the paranthesis as we're using it in discord.py

bot.run(token, bot=True)

#current working functions.

getOnline() #displays the amount of online players
getOnlineDiscord(ctx) #sends the amount of online players in a discord channel where the command its executed.
getServerTime() #displays the current server time (the game's server time)
getServerTimeDiscord(ctx) #sends the game's server time in a discord channel where the command its executed.
getLeaderboard(player)	#displays a player's statistics in the console (must specify the player's name)
getLeaderboardDiscord(ctx, player) #sends a player's statistics in a discord server (must specify the player's name)

This library will be updated soon as those aint all the functions.

Hope you will enjoy! :)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

Eliatopia.py-0.1.0-py2.py3-none-any.whl (4.8 kB view details)

Uploaded Python 2Python 3

File details

Details for the file Eliatopia.py-0.1.0-py2.py3-none-any.whl.

File metadata

  • Download URL: Eliatopia.py-0.1.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 4.8 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/54.1.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.1

File hashes

Hashes for Eliatopia.py-0.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 8af93552357b432f25a8fc57e6e5b396a960ff14d4188506641c5ebcba81c4ab
MD5 1289160e4da47817d6091aaf7cd33633
BLAKE2b-256 d8c7fbd2c0521d7a2749fb02e5e76f1471f556232809f4da51b03e49c8821ce2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page