A Python Version of Canvacord
Project description
A copy of canvacord made in python!
Table of contents
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.comand()
async def jail(ctx):
user = ctx.author
image = await canvacord.jail(user)
file = discord.File(filename="jail.png", fp=image)
await ctx.send(file=file)
@client.comand()
async def gay(ctx):
user = ctx.author
image = await canvacord.gay(user)
file = discord.File(filename="gay.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.26.tar.gz
(7.7 kB
view details)
Built Distribution
File details
Details for the file canvacord-0.1.26.tar.gz
.
File metadata
- Download URL: canvacord-0.1.26.tar.gz
- Upload date:
- Size: 7.7 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 | 78312e74ba0ce080e360bdd679941560c654ccca8458639b8abc2f20c2b1bbbd |
|
MD5 | 3568f15b0f0797b03345eff281235446 |
|
BLAKE2b-256 | ecc2721b3cfc407f7b2abc1dd717aab5f0bc2a84f7738d8174a7eea484e16845 |
File details
Details for the file canvacord-0.1.26-py3-none-any.whl
.
File metadata
- Download URL: canvacord-0.1.26-py3-none-any.whl
- Upload date:
- Size: 10.1 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 | 2de3f9c03d5082f0b734f87664cfe6ca3ad9d08ddded7352329881e609f5d0fd |
|
MD5 | cba6651556e90de53ebeb21628ec4d93 |
|
BLAKE2b-256 | 5c5e7ceec5e2d3a22ec7ffb3917a448f72ec6b0cb20d759f8ebc6cdba882a86a |