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.rankcard 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.5.tar.gz
(4.5 kB
view details)
Built Distribution
File details
Details for the file canvacord-0.1.5.tar.gz
.
File metadata
- Download URL: canvacord-0.1.5.tar.gz
- Upload date:
- Size: 4.5 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 | 020da76aa33c274aa39838cd65cf20e2cde96e064a4b41c37287afed99a39a08 |
|
MD5 | 45db996eaed3c6e352302f4d52470c6d |
|
BLAKE2b-256 | eb2b582a32c8657099f8993fde5cd24da1301f5e4924394b3ed3fa250922f4d2 |
File details
Details for the file canvacord-0.1.5-py3-none-any.whl
.
File metadata
- Download URL: canvacord-0.1.5-py3-none-any.whl
- Upload date:
- Size: 4.7 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 | 0317c2600d7b66374547959dc221f8d0767947237b9a254d3d95cea2b840e00c |
|
MD5 | f31785edbe93ed2f15648067864e491c |
|
BLAKE2b-256 | bf13127989c987c3cca18023fc5f3ea56de63fd92037dd064c439e01129613d2 |