disrank2-0.0.4
توضیحات
Simple lib for discord rank card
| ویژگی | مقدار |
|---|---|
| سیستم عامل | POSIX :: Linux |
| نام فایل | disrank2-0.0.4 |
| نام | disrank2 |
| نسخه کتابخانه | 0.0.4 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Otartist |
| ایمیل نویسنده | - |
| آدرس صفحه اصلی | https://github.com/Otartist/disrank2 |
| آدرس اینترنتی | https://pypi.org/project/disrank2/ |
| مجوز | MIT |
# 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
```py
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
```py
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)
```
نحوه نصب
نصب پکیج whl disrank2-0.0.4:
pip install disrank2-0.0.4.whl
نصب پکیج tar.gz disrank2-0.0.4:
pip install disrank2-0.0.4.tar.gz