Skip to main content

A Python Version of Canvacord

Project description

Discord PyPi Python

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

from canvacord.rankcard import rankcard

client = commands.Bot(command_prefix="!")
slash = slash_commands.SlashClient(client)
test_guilds = [12345, 98765]

@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

Downloads Downloads Downloads

Project details


Release history Release notifications | RSS feed

This version

0.1.1

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.1.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

canvacord-0.1.1-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file canvacord-0.1.1.tar.gz.

File metadata

  • Download URL: canvacord-0.1.1.tar.gz
  • Upload date:
  • Size: 4.6 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

Hashes for canvacord-0.1.1.tar.gz
Algorithm Hash digest
SHA256 9e955649e8763847277ea35e5209c800f0d2aae17bf43910b7e0308b1410ef54
MD5 66776acb88dc904b66063553176e94da
BLAKE2b-256 4e345ed3e47ec59fdd3fcfd27c04e2d1dbc8a807e0bc1f4e7573b3ce9d7c7a59

See more details on using hashes here.

File details

Details for the file canvacord-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: canvacord-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 4.8 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

Hashes for canvacord-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d5f9ab4449ba9423b1a8da38aab2cb30befb42b63c3bdd72cf719158a3643968
MD5 69ced95e0dc60deb7d127b064fa0c49c
BLAKE2b-256 1f076ec5e218bdc33fbd94a4925c56cc36b48fd4de7da7bf9115d2896ffc3efa

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page