[![Discord](https://discord.com/api/guilds/872291125547921459/embed.png)](https://discord.gg/mPU3HybBs9)
[![PyPi](https://img.shields.io/pypi/v/canvacord.svg)](https://pypi.org/project/canvacord)
[![Python](https://img.shields.io/pypi/pyversions/dislash.py.svg)](https://pypi.python.org/pypi/canvacord)
A copy of [canvacord](https://www.npmjs.com/package/canvacord) made in python!
# Table of contents
1. [Installation](#installation)
2. [Examples](#examples)
3. [Creating Images](#creating-images)
4. [Links](#links)
5. [Downloads](#downloads)
# 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](https://github.com/Rapptz/discord.py)**.
## Creating-Images
```python
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, ranklevelsep="|", xpsep="/")
file = discord.File(filename="rankcard.png", fp=image)
await ctx.send(file=file)
@client.command()
async def welcomecard(ctx):
image = await canvacord.welcomecard(user=ctx.author, background=None, avatarcolor="white", topcolor="white", bottomcolor="white", backgroundcolor="black", font=None, toptext="Welcome {user_name}!", bottomtext="Enjoy your stay in {server}!")
file = discord.File(filename="welcomecard.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
[![Discord](https://discord.com/api/guilds/872291125547921459/embed.png)](https://discord.gg/mPU3HybBs9)
[![PyPi](https://img.shields.io/pypi/v/canvacord.svg)](https://pypi.org/project/canvacord)
# Downloads
[![Downloads](https://pepy.tech/badge/canvacord)](https://pepy.tech/project/canvacord)
[![Downloads](https://pepy.tech/badge/canvacord/month)](https://pepy.tech/project/canvacord)
![Downloads](https://pepy.tech/badge/canvacord/week)
Raw data
{
"_id": null,
"home_page": "https://github.com/BlazenBoi/canvacord.py/issues",
"name": "canvacord",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.6",
"maintainer_email": "",
"keywords": "canvacord,rankcard,image manipulation,meme,discord,discordpy,discord-py",
"author": "Blazen",
"author_email": "contact@fireballbot.com",
"download_url": "https://files.pythonhosted.org/packages/ae/25/02eec07997dafec31314ee8c3410ce87de9bebf8031acdfd9b606bc57f8e/canvacord-3.4.9.tar.gz",
"platform": null,
"description": "[![Discord](https://discord.com/api/guilds/872291125547921459/embed.png)](https://discord.gg/mPU3HybBs9)\r\n[![PyPi](https://img.shields.io/pypi/v/canvacord.svg)](https://pypi.org/project/canvacord)\r\n[![Python](https://img.shields.io/pypi/pyversions/dislash.py.svg)](https://pypi.python.org/pypi/canvacord)\r\n\r\nA copy of [canvacord](https://www.npmjs.com/package/canvacord) made in python!\r\n\r\n\r\n\r\n# Table of contents\r\n1. [Installation](#installation)\r\n2. [Examples](#examples)\r\n3. [Creating Images](#creating-images)\r\n4. [Links](#links)\r\n5. [Downloads](#downloads)\r\n\r\n# Installation\r\n\r\nRun any of these commands in terminal:\r\n\r\nMac / Linux\r\n```\r\npip install canvacord\r\n```\r\n\r\nWindows\r\n```\r\npython -m pip install canvacord\r\n```\r\n\r\n# Examples\r\n\ud83d\udca1 This library requires **[discord.py](https://github.com/Rapptz/discord.py)**.\r\n\r\n\r\n## Creating-Images\r\n\r\n```python\r\nimport discord\r\nfrom discord.ext import commands\r\nimport canvacord\r\n\r\nclient = commands.Bot(command_prefix=\"!\")\r\n\r\n@client.command()\r\nasync def rankcard(ctx):\r\n user = ctx.author\r\n username = ctx.author.name + \"#\" + ctx.author.discriminator\r\n currentxp = 1\r\n lastxp = 0\r\n nextxp = 2\r\n current_level = 1\r\n current_rank = 1\r\n background = None\r\n image = await canvacord.rankcard(user=user, username=username, currentxp=currentxp, lastxp=lastxp, nextxp=nextxp, level=current_level, rank=current_rank, background=background, ranklevelsep=\"|\", xpsep=\"/\")\r\n file = discord.File(filename=\"rankcard.png\", fp=image)\r\n await ctx.send(file=file)\r\n\r\n@client.command()\r\nasync def welcomecard(ctx):\r\n image = await canvacord.welcomecard(user=ctx.author, background=None, avatarcolor=\"white\", topcolor=\"white\", bottomcolor=\"white\", backgroundcolor=\"black\", font=None, toptext=\"Welcome {user_name}!\", bottomtext=\"Enjoy your stay in {server}!\")\r\n file = discord.File(filename=\"welcomecard.png\", fp=image)\r\n await ctx.send(file=file)\r\n \r\n@client.command()\r\nasync def triggered(ctx):\r\n user = ctx.author\r\n image = await canvacord.trigger(user)\r\n file = discord.File(filename=\"triggered.gif\", fp=image)\r\n await ctx.send(file=file)\r\n\r\n@client.command()\r\nasync def communism(ctx):\r\n user = ctx.author\r\n image = await canvacord.communism(user)\r\n file = discord.File(filename=\"communism.gif\", fp=image)\r\n await ctx.send(file=file)\r\n\r\n@client.command()\r\nasync def jail(ctx):\r\n user = ctx.author\r\n image = await canvacord.jail(user)\r\n file = discord.File(filename=\"jail.png\", fp=image)\r\n await ctx.send(file=file)\r\n\r\n@client.command()\r\nasync def gay(ctx):\r\n user = ctx.author\r\n image = await canvacord.gay(user)\r\n file = discord.File(filename=\"gay.png\", fp=image)\r\n await ctx.send(file=file)\r\n\r\n@client.command()\r\nasync def hitler(ctx):\r\n user = ctx.author\r\n image = await canvacord.hitler(user)\r\n file = discord.File(filename=\"hitler.png\", fp=image)\r\n await ctx.send(file=file)\r\n\r\n@client.command()\r\nasync def aborted(ctx):\r\n user = ctx.author\r\n image = await canvacord.aborted(user)\r\n file = discord.File(filename=\"aborted.png\", fp=image)\r\n await ctx.send(file=file)\r\n\r\n@client.command()\r\nasync def affect(ctx):\r\n user = ctx.author\r\n image = await canvacord.affect(user)\r\n file = discord.File(filename=\"affect.png\", fp=image)\r\n await ctx.send(file=file)\r\n\r\n@client.command()\r\nasync def airpods(ctx):\r\n user = ctx.author\r\n image = await canvacord.airpods(user)\r\n file = discord.File(filename=\"airpods.gif\", fp=image)\r\n await ctx.send(file=file)\r\n\r\n@client.command()\r\nasync def america(ctx):\r\n user = ctx.author\r\n image = await canvacord.america(user)\r\n file = discord.File(filename=\"america.gif\", fp=image)\r\n await ctx.send(file=file)\r\n\r\n@client.command()\r\nasync def wanted(ctx):\r\n user = ctx.author\r\n image = await canvacord.wanted(user)\r\n file = discord.File(filename=\"wanted.png\", fp=image)\r\n await ctx.send(file=file)\r\n\r\n@client.command()\r\nasync def joke(ctx):\r\n user = ctx.author\r\n image = await canvacord.jokeoverhead(user)\r\n file = discord.File(filename=\"jokeoverhead.png\", fp=image)\r\n await ctx.send(file=file)\r\n\r\n@client.command()\r\nasync def spank(ctx):\r\n user1 = ctx.author\r\n user2 = ctx.author\r\n image = await canvacord.spank(user1, user2)\r\n file = discord.File(filename=\"spank.png\", fp=image)\r\n await ctx.send(file=file)\r\n\r\n@client.command()\r\nasync def bed(ctx):\r\n user1 = ctx.author\r\n user2 = ctx.author\r\n image = await canvacord.bed(user1, user2)\r\n file = discord.File(filename=\"bed.png\", fp=image)\r\n await ctx.send(file=file)\r\n \r\nclient.run(\"BOT_TOKEN\")\r\n```\r\n\r\n\r\n# Links\r\n[![Discord](https://discord.com/api/guilds/872291125547921459/embed.png)](https://discord.gg/mPU3HybBs9)\r\n[![PyPi](https://img.shields.io/pypi/v/canvacord.svg)](https://pypi.org/project/canvacord)\r\n\r\n\r\n# Downloads\r\n\r\n\r\n[![Downloads](https://pepy.tech/badge/canvacord)](https://pepy.tech/project/canvacord)\r\n[![Downloads](https://pepy.tech/badge/canvacord/month)](https://pepy.tech/project/canvacord)\r\n![Downloads](https://pepy.tech/badge/canvacord/week)\r\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "A Python Version of Canvacord",
"version": "3.4.9",
"project_urls": {
"Bug Tracker": "https://github.com/BlazenBoi/canvacord.py/issues",
"Discord Server": "https://discord.com/invite/mPU3HybBs9",
"Homepage": "https://github.com/BlazenBoi/canvacord.py/issues",
"Source": "https://github.com/BlazenBoi/canvacord"
},
"split_keywords": [
"canvacord",
"rankcard",
"image manipulation",
"meme",
"discord",
"discordpy",
"discord-py"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "c274d50594a8259d286539d2214e6c02be9179a68dccf00195e8027fa1eaea94",
"md5": "23165bbf8194f66588575d7166a283d8",
"sha256": "77a285933bad9bdb4eeb9389ad2182771c8172fe6ba971accac5156901c96db3"
},
"downloads": -1,
"filename": "canvacord-3.4.9-py3-none-any.whl",
"has_sig": false,
"md5_digest": "23165bbf8194f66588575d7166a283d8",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.6",
"size": 19311,
"upload_time": "2023-11-22T22:27:19",
"upload_time_iso_8601": "2023-11-22T22:27:19.212330Z",
"url": "https://files.pythonhosted.org/packages/c2/74/d50594a8259d286539d2214e6c02be9179a68dccf00195e8027fa1eaea94/canvacord-3.4.9-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "ae2502eec07997dafec31314ee8c3410ce87de9bebf8031acdfd9b606bc57f8e",
"md5": "e17ae4f30b1b3b45481eb1b0ffb99cb3",
"sha256": "0223720c7d17d5374ee1da359fe6a5b4841539e9079e207af4492cb613266bd2"
},
"downloads": -1,
"filename": "canvacord-3.4.9.tar.gz",
"has_sig": false,
"md5_digest": "e17ae4f30b1b3b45481eb1b0ffb99cb3",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.6",
"size": 11496,
"upload_time": "2023-11-22T22:27:24",
"upload_time_iso_8601": "2023-11-22T22:27:24.725608Z",
"url": "https://files.pythonhosted.org/packages/ae/25/02eec07997dafec31314ee8c3410ce87de9bebf8031acdfd9b606bc57f8e/canvacord-3.4.9.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-11-22 22:27:24",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "BlazenBoi",
"github_project": "canvacord.py",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"requirements": [],
"lcname": "canvacord"
}