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.7.tar.gz
(4.8 kB
view hashes)
Built Distribution
Close
Hashes for canvacord-0.1.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6af03071ee9c4fa8bc118d8a2a632b8074a08736482740d3439d75ae6984ac0f |
|
MD5 | f2fb6fb6c6757f4cd5498410ccd68f1d |
|
BLAKE2b-256 | 03109b6e801377fbbca96da9c3c32f3812c62f45204dc5613024c5153d01eec3 |