A Python Version of Canvacord
Project description
An extending library for discord.py that allows to build awesome message components and slash commands.
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
level = 1
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.2.tar.gz
(4.5 kB
view hashes)
Built Distribution
Close
Hashes for canvacord-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1ed8c110f090b7956ea821a9086659311694b404ec08e56612ee12fe4dfd2690 |
|
MD5 | 379450dc94e05a9c092ef2eee3cdb155 |
|
BLAKE2b-256 | f2172ca55b386fea3308c8fd1961e0c619a794dbfed56fa37d1b2386db81480f |