DiscordLevelingCard
A library with Rank cards for your discord bot.
card preview
card1
installation
for pypi version
pip install discordlevelingcard
for github developement version
pip install git+https://github.com/ResetXD/DiscordLevelingCard
How To Use
If you don't provide path then the method will return bytes which can directly be used in discord.py/disnake/pycord/nextcord 's File class.
Example
from disnake.ext import commands
from DiscordLevelingCard import RankCard
import disnake
client = commands.Bot()
@client.slash_command(name="rank")
async def user_rank_card(ctx, user:disnake.Member):
await ctx.response.defer()
a = RankCard(
background="./my_cool_background.png",
avatar=user.display_avatar.url,
level=1,
current_exp=1,
max_exp=1,
username="cool username",
type="disnake"
)
image = await a.card1()
await ctx.edit_original_message(file=image)
or you can use no type
@client.slash_command(name="rank")
async def user_rank_card(ctx, user:disnake.Member):
await ctx.response.defer()
a = RankCard(
background=user.banner.url,
avatar=user.display_avatar.url,
level=1,
current_exp=1,
max_exp=1,
username="cool username"
)
image = await a.card1()
await ctx.edit_original_message(file=disnake.File(image))
if you want to use path
@client.slash_command(name="rank")
async def user_rank_card(ctx, user:disnake.Member):
await ctx.response.defer()
a = RankCard(
background=user.banner.url,
avatar=user.display_avatar.url,
level=1,
current_exp=1,
max_exp=1,
username="cool username",
bar_color="red",
text_color="white",
path="./user_cards/rank_card.png"
)
# image return the path provided i.e. "./user_cards/rank_card.png"
image = await a.card1()
await ctx.edit_original_message(file=disnake.File(image))
Metadata
Release files for discordlevelingcard 0.1.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| discordlevelingcard-0.1.7.tar.gz | 5.3 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| discordlevelingcard-0.1.7-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.0 kB
Release files / discordlevelingcard-0.1.7.tar.gz
| Download URL | discordlevelingcard-0.1.7.tar.gz |
|---|---|
| Size | 5.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
07cce4518807fa33fa217a1173728eb7c8bf72f06b28c593ea5db4a0e19295c6
|
|
BLAKE2b-256 checksum How to use checksums |
d0a5eae35881648076409026a158c6704233d71adebb12d1556ae401615c24e3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.13 CPython/3.9.4 Windows/10
|
Release files / discordlevelingcard-0.1.7-py3-none-any.whl
| Download URL | discordlevelingcard-0.1.7-py3-none-any.whl |
|---|---|
| Size | 5.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5b8d0dad42f1b1912b5758381b0f95e945f93337343a3d9ca0659d8f264ab7df
|
|
BLAKE2b-256 checksum How to use checksums |
c0a063d6cc0b45ea4031679fd32342c7fdd860e5f4f932420a6db4199aaa85d8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.13 CPython/3.9.4 Windows/10
|
Security for discordlevelingcard 0.1.7
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.