diff options
author | CoprDistGit <infra@openeuler.org> | 2023-04-12 00:21:45 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-04-12 00:21:45 +0000 |
commit | dde1dcd9abab63ef0891b3559907c9ed5b4319fc (patch) | |
tree | ab63241afb8686c548898cf56efe932ef299a72b | |
parent | 7bc842b8ff6c72b18690cf678ef7eec48cfc7e7e (diff) |
automatic import of python-canvacord
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-canvacord.spec | 578 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 580 insertions, 0 deletions
@@ -0,0 +1 @@ +/canvacord-3.4.3.tar.gz diff --git a/python-canvacord.spec b/python-canvacord.spec new file mode 100644 index 0000000..1739e7f --- /dev/null +++ b/python-canvacord.spec @@ -0,0 +1,578 @@ +%global _empty_manifest_terminate_build 0 +Name: python-canvacord +Version: 3.4.3 +Release: 1 +Summary: A Python Version of Canvacord +License: MIT +URL: https://github.com/BlazenBoi/canvacord.py/issues +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/ca/09/50346e467a7beb1b3143dd01f76d391ca34dc63e08b56bc8c8158a8d3532/canvacord-3.4.3.tar.gz +BuildArch: noarch + +Requires: python3-setuptools +Requires: python3-wheel +Requires: python3-pillow +Requires: python3-discord +Requires: python3-asyncio +Requires: python3-aiohttp +Requires: python3-typing +Requires: python3-datetime + +%description +[](https://discord.gg/mPU3HybBs9) +[](https://pypi.org/project/canvacord) +[](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) + 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 +[](https://discord.gg/mPU3HybBs9) +[](https://pypi.org/project/canvacord) + + +# Downloads + + +[](https://pepy.tech/project/canvacord) +[](https://pepy.tech/project/canvacord) + + + + + +%package -n python3-canvacord +Summary: A Python Version of Canvacord +Provides: python-canvacord +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-canvacord +[](https://discord.gg/mPU3HybBs9) +[](https://pypi.org/project/canvacord) +[](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) + 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 +[](https://discord.gg/mPU3HybBs9) +[](https://pypi.org/project/canvacord) + + +# Downloads + + +[](https://pepy.tech/project/canvacord) +[](https://pepy.tech/project/canvacord) + + + + + +%package help +Summary: Development documents and examples for canvacord +Provides: python3-canvacord-doc +%description help +[](https://discord.gg/mPU3HybBs9) +[](https://pypi.org/project/canvacord) +[](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) + 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 +[](https://discord.gg/mPU3HybBs9) +[](https://pypi.org/project/canvacord) + + +# Downloads + + +[](https://pepy.tech/project/canvacord) +[](https://pepy.tech/project/canvacord) + + + + + +%prep +%autosetup -n canvacord-3.4.3 + +%build +%py3_build + +%install +%py3_install +install -d -m755 %{buildroot}/%{_pkgdocdir} +if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi +if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi +if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi +if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi +pushd %{buildroot} +if [ -d usr/lib ]; then + find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/lib64 ]; then + find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/bin ]; then + find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/sbin ]; then + find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst +fi +touch doclist.lst +if [ -d usr/share/man ]; then + find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst +fi +popd +mv %{buildroot}/filelist.lst . +mv %{buildroot}/doclist.lst . + +%files -n python3-canvacord -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Wed Apr 12 2023 Python_Bot <Python_Bot@openeuler.org> - 3.4.3-1 +- Package Spec generated @@ -0,0 +1 @@ +7af1cff1c972345011f4e1f3e7d00edc canvacord-3.4.3.tar.gz |