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
Release history Release notifications | RSS feed
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
Close
Hashes for Eliatopia.py-0.1.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8af93552357b432f25a8fc57e6e5b396a960ff14d4188506641c5ebcba81c4ab |
|
MD5 | 1289160e4da47817d6091aaf7cd33633 |
|
BLAKE2b-256 | d8c7fbd2c0521d7a2749fb02e5e76f1471f556232809f4da51b03e49c8821ce2 |