lib olekps
Project description
olekps.py libraly
Installing
# Linux/macOS
pip3 install -U olekps.py
# Windows
pip install -U olekps.py
Level Card Example
from discord.ext import commands
from mariocard import *
client = commands.Bot(command_prefix=".")
@client.command()
async def card(ctx):
#creating levelcard object
levelcard = LevelCard()
#setting avatar url for image
levelcard.avatar = ctx.author.avatar_url
#setting background file path or link
levelcard.path = "https://raw.githubusercontent.com/mario1842/mariocard/main/bg.png"
#setting member name
levelcard.name = ctx.author
#setting xp for bar on card
levelcard.xp = 10
#setting required xp for bar on card
levelcard.required_xp = 20
#setting level to text on crad
levelcard.level = 2
#sending image to discord channel
await ctx.send(file=await levelcard.create())
client.run("token")
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 Distribution
olekps-1.0.0.tar.gz
(2.6 kB
view details)
File details
Details for the file olekps-1.0.0.tar.gz.
File metadata
- Download URL: olekps-1.0.0.tar.gz
- Upload date:
- Size: 2.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
45d50c60758a0bf63340136ede24484f9f83508ed4bf86864c9fc4babdf84edd
|
|
| MD5 |
50952dcee3c88cbab96f2cac4fa810c1
|
|
| BLAKE2b-256 |
7d61a4d82fa3377148abf269b4b295cfd0de7b2e5ea1b98f04321bfa2b4d6f90
|