Simple lib for discord rank card
Project description
Disrank2
Simple lib to make good looking discord rank & welcome card. For any bug report, please come on my discord bot's support server : https://discord.gg/7DW9T5prRM
Usage for Rank card generator
from disrank2.generator import Rankgenerator
args = {
'bg_image' : '', # Background image link
'profile_image' : '', # User profile picture link
'level' : 1, # User current level
'current_xp' : 0, # Current level minimum xp
'user_xp' : 10, # User current xp
'next_xp' : 100, # xp required for next level
'user_position' : 1, # User position in leaderboard
'user_name' : 'Name#0001', # user name with descriminator
'user_status' : 'online', # User status eg. online, offline, idle, streaming, dnd
'text_color' : '#ff7300', # Text color in HEX
}
image = Generator().generate_profile(**args)
# In a discord command
file = discord.File(fp=image, filename='image.png')
await ctx.send(file=file)
Usage for Welcome card generator
from disrank2.generator import Welcomegenerator
args = {
'bg_image' : '', # Background image link
'profile_image' : '', # User profile picture link
'level' : 1, # User current level
'current_xp' : 0, # Current level minimum xp
'user_xp' : 10, # User current xp
'next_xp' : 100, # xp required for next level
'user_position' : 1, # User position in leaderboard
'user_name' : 'Name#0001', # user name with descriminator
'user_status' : 'online', # User status eg. online, offline, idle, streaming, dnd
'text_color' : '#ff7300', # Text color in HEX
}
image = Generator().generate_profile(**args)
# In a discord command
file = discord.File(fp=image, filename='image.png')
await ctx.send(file=file)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
disrank2-0.0.4.tar.gz
(185.6 kB
view details)
File details
Details for the file disrank2-0.0.4.tar.gz.
File metadata
- Download URL: disrank2-0.0.4.tar.gz
- Upload date:
- Size: 185.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a74d8c4c2e84674b7b48d0e523311bd274270f0e3d4f1ef1d0d4a95594e1d02a
|
|
| MD5 |
b2ae7cc4a17b0744fe237c4df08ec643
|
|
| BLAKE2b-256 |
cc02818b07eb03cc5140021b2d5d33067359fdeb414d209bf5247b492e1b8d53
|