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.command()
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.command()
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.command()
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.command()
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.command()
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.command()
async def hitler(ctx):
user = ctx.author
image = await canvacord.hitler(user)
file = discord.File(filename="hitler.png", fp=image)
await ctx.send(file=file)
@client.command()
async def aborted(ctx):
user = ctx.author
image = await canvacord.aborted(user)
file = discord.File(filename="aborted.png", fp=image)
await ctx.send(file=file)
@client.command()
async def affect(ctx):
user = ctx.author
image = await canvacord.affect(user)
file = discord.File(filename="affect.png", fp=image)
await ctx.send(file=file)
@client.command()
async def airpods(ctx):
user = ctx.author
image = await canvacord.airpods(user)
file = discord.File(filename="airpods.gif", fp=image)
await ctx.send(file=file)
@client.command()
async def america(ctx):
user = ctx.author
image = await canvacord.america(user)
file = discord.File(filename="america.gif", fp=image)
await ctx.send(file=file)
@client.command()
async def wanted(ctx):
user = ctx.author
image = await canvacord.wanted(user)
file = discord.File(filename="wanted.png", fp=image)
await ctx.send(file=file)
@client.command()
async def joke(ctx):
user = ctx.author
image = await canvacord.jokeoverhead(user)
file = discord.File(filename="jokeoverhead.png", fp=image)
await ctx.send(file=file)
@client.command()
async def spank(ctx):
user1 = ctx.author
user2 = ctx.author
image = await canvacord.spank(user1, user2)
file = discord.File(filename="spank.png", fp=image)
await ctx.send(file=file)
@client.command()
async def bed(ctx):
user1 = ctx.author
user2 = ctx.author
image = await canvacord.bed(user1, user2)
file = discord.File(filename="bed.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.2.79.tar.gz
(10.8 kB
view details)
Built Distribution
File details
Details for the file canvacord-0.2.79.tar.gz
.
File metadata
- Download URL: canvacord-0.2.79.tar.gz
- Upload date:
- Size: 10.8 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.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c86389709585369a3cb8b01caa43567ec62af0b28ccf7b6608042c0774a8c8ad |
|
MD5 | dd8712cd16e5509e5ab0bcb399c6f46c |
|
BLAKE2b-256 | d2e44d69d7676ad161546c5a5806bff2e3d398047c7df81ba651f3eef6814e53 |
File details
Details for the file canvacord-0.2.79-py3-none-any.whl
.
File metadata
- Download URL: canvacord-0.2.79-py3-none-any.whl
- Upload date:
- Size: 17.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.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f9c566900099a39f524a44cf3ab7b4cc102476706e1b98fa4cbb76dfc92884da |
|
MD5 | 0f8a4429b9e0eee8da77cc38a19546be |
|
BLAKE2b-256 | a7bc3f3b65acd873f912d54cb775facef6ffcc3f130e367ce96d876794e86e3a |