A Python Version of Canvacord
Project description
A copy of canvacord made in python!
Installation
Run any of these commands in terminal:
Mac / Linux
pip install canvacord
Windows
python -m pip install canvacord
Examples
💡 This library requires discord.py.
Creating a Rank Card
import discord
from discord.ext import commands
from canvacord import rankcard
client = commands.Bot(command_prefix="!")
@client.comand()
async def test(ctx):
user = ctx.author
username = ctx.author.name + "#" + ctx.author.discriminator
currentxp = 1
lastxp = 0
nextxp = 2
current_level = 1
current_rank = 1
background = None
image = await rankcard(user=user, username=username, currentxp=currentxp, lastxp=lastxp, nextxp=nextxp, level=current_level, rank=current_rank, background=background)
file = discord.File(filename="rankcard.png", fp=image)
await ctx.send(file=file)
client.run("BOT_TOKEN")
Links
Downloads
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
canvacord-0.1.9.tar.gz
(5.9 kB
view details)
Built Distribution
File details
Details for the file canvacord-0.1.9.tar.gz
.
File metadata
- Download URL: canvacord-0.1.9.tar.gz
- Upload date:
- Size: 5.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.0 requests/2.25.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | abb1dc3e9322e018b15578286cf032d406f0e9b50dc251d34fcadc53fe13e902 |
|
MD5 | d97412640ba99c6cccd09cc833eb291f |
|
BLAKE2b-256 | 1f8036f16cb6ef0bea74d07923620c8c515d172d24032ce9bd822fe9bf4ff024 |
File details
Details for the file canvacord-0.1.9-py3-none-any.whl
.
File metadata
- Download URL: canvacord-0.1.9-py3-none-any.whl
- Upload date:
- Size: 6.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.0 requests/2.25.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2d4ca7c7fc7adf8b1b01a24f30f33c4250d0ea73682c2f0728e3963ab9c3f274 |
|
MD5 | 00e65ebd0fb0150478a200216c8aac60 |
|
BLAKE2b-256 | 83c81cce51d0bf2e54546ce6e959eeb508685a3f7c1a9f492c985efd18f5f4b6 |