Skip to main content

A Python Version of Canvacord

Project description

Discord PyPi Python

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 Images

import discord
from discord.ext import commands
import canvacord

client = commands.Bot(command_prefix="!")

@client.comand()
async def rankcard(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 canvacord.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.comand()
async def triggered(ctx):
    user = ctx.author
    image = await canvacord.trigger(user)
    file = discord.File(filename="triggered.gif", fp=image)
    await ctx.send(file=file)

@client.comand()
async def communism(ctx):
    user = ctx.author
    image = await canvacord.communism(user)
    file = discord.File(filename="communism.gif", fp=image)
    await ctx.send(file=file)
    
client.run("BOT_TOKEN")

Links

Downloads

Downloads Downloads 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.21.tar.gz (6.2 kB view details)

Uploaded Source

Built Distribution

canvacord-0.1.21-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: canvacord-0.1.21.tar.gz
  • Upload date:
  • Size: 6.2 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.21.tar.gz
Algorithm Hash digest
SHA256 5ac558c98ccca3a4a1660e61569ca2f091b0d8e1724684f88c85e55428129ca0
MD5 d3c28d6134453014dfc9b705ac7d7c83
BLAKE2b-256 772eaa4b9f2ec617dc2147f69165538dcd6d905e2271882d6e81345d35ccce58

See more details on using hashes here.

File details

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

File metadata

  • Download URL: canvacord-0.1.21-py3-none-any.whl
  • Upload date:
  • Size: 6.9 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.21-py3-none-any.whl
Algorithm Hash digest
SHA256 f1880f10091ae38d8704265dba67e1f8ad45bdf082689a84a3705672b0e9d301
MD5 1bf4e8412b95099090d172e8e4cdb44c
BLAKE2b-256 c02b6a65de480d2a4a07c940b080ce89c232119ffc17fc02ee5c7dd447b3f288

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