Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/shahriyardx/disrank
A lib to create nice looking discord rank card
https://github.com/shahriyardx/disrank
Last synced: 9 days ago
JSON representation
A lib to create nice looking discord rank card
- Host: GitHub
- URL: https://github.com/shahriyardx/disrank
- Owner: shahriyardx
- License: mit
- Created: 2020-07-14T15:16:17.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-12-14T03:41:32.000Z (almost 4 years ago)
- Last Synced: 2024-10-02T14:47:37.039Z (about 1 month ago)
- Language: Python
- Size: 519 KB
- Stars: 10
- Watchers: 1
- Forks: 8
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.txt
- License: LICENSE
Awesome Lists containing this project
README
# Disrank
A lib to make good looking discord profile card# Usage
```py
from disrank.generator import Generatorargs = {
'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
}image = Generator().generate_profile(**args)
# In a discord command
file = discord.File(fp=image, filename='image.png')
await ctx.send(file=file)
```Make sure to run the generate part in an executor.
Any help need [Join here](https://discord.gg/7SaE8v2)