%global _empty_manifest_terminate_build 0 Name: python-guilded.py Version: 1.8.0 Release: 1 Summary: An API wrapper in Python for Guilded's bot API License: MIT URL: https://github.com/shayypy/guilded.py Source0: https://mirrors.nju.edu.cn/pypi/web/packages/40/02/9802f172f8dbbd0264927df8105517742c9712988f0c314f536bc279b310/guilded.py-1.8.0.tar.gz BuildArch: noarch Requires: python3-aiohttp Requires: python3-sphinx Requires: python3-sphinxcontrib-trio Requires: python3-sphinxcontrib-websupport Requires: python3-typing-extensions %description Welcome to guilded.py, a discord.py-esque asynchronous Python wrapper for Guilded's bot API. If you know discord.py, you know guilded.py. ## Documentation Documentation is available on [Read the Docs](https://guildedpy.readthedocs.io). ## Basic Example ```py import guilded client = guilded.Client() @client.event async def on_ready(): print('Ready') @client.event async def on_message(message): if message.author == client.user: return if message.content == 'ping': await message.channel.send('pong!') client.run('token') ``` ### Bot example ```py import guilded from guilded.ext import commands bot = commands.Bot(command_prefix='!') @bot.command() async def ping(ctx): await ctx.send('pong!') bot.run('token') ``` For more examples, see the examples directory in this repository. ## Support Guilded.py has a support channel under its dedicated group for any questions you may have. 1. Join [this server](https://guilded.gg/guilded-api) 2. Click on the far-left plus sign ![](https://img.guildedcdn.com/ContentMedia/f4f92fa74bf1b6043b438046eebcf0f4-Full.webp?w=198&h=165) 3. Click the "Follow" button on the guilded.py group ![](https://img.guildedcdn.com/ContentMedia/ecfc6237dd2f401fbd356edfd50916fc-Full.webp?w=816&h=339) %package -n python3-guilded.py Summary: An API wrapper in Python for Guilded's bot API Provides: python-guilded.py BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-pip %description -n python3-guilded.py Welcome to guilded.py, a discord.py-esque asynchronous Python wrapper for Guilded's bot API. If you know discord.py, you know guilded.py. ## Documentation Documentation is available on [Read the Docs](https://guildedpy.readthedocs.io). ## Basic Example ```py import guilded client = guilded.Client() @client.event async def on_ready(): print('Ready') @client.event async def on_message(message): if message.author == client.user: return if message.content == 'ping': await message.channel.send('pong!') client.run('token') ``` ### Bot example ```py import guilded from guilded.ext import commands bot = commands.Bot(command_prefix='!') @bot.command() async def ping(ctx): await ctx.send('pong!') bot.run('token') ``` For more examples, see the examples directory in this repository. ## Support Guilded.py has a support channel under its dedicated group for any questions you may have. 1. Join [this server](https://guilded.gg/guilded-api) 2. Click on the far-left plus sign ![](https://img.guildedcdn.com/ContentMedia/f4f92fa74bf1b6043b438046eebcf0f4-Full.webp?w=198&h=165) 3. Click the "Follow" button on the guilded.py group ![](https://img.guildedcdn.com/ContentMedia/ecfc6237dd2f401fbd356edfd50916fc-Full.webp?w=816&h=339) %package help Summary: Development documents and examples for guilded.py Provides: python3-guilded.py-doc %description help Welcome to guilded.py, a discord.py-esque asynchronous Python wrapper for Guilded's bot API. If you know discord.py, you know guilded.py. ## Documentation Documentation is available on [Read the Docs](https://guildedpy.readthedocs.io). ## Basic Example ```py import guilded client = guilded.Client() @client.event async def on_ready(): print('Ready') @client.event async def on_message(message): if message.author == client.user: return if message.content == 'ping': await message.channel.send('pong!') client.run('token') ``` ### Bot example ```py import guilded from guilded.ext import commands bot = commands.Bot(command_prefix='!') @bot.command() async def ping(ctx): await ctx.send('pong!') bot.run('token') ``` For more examples, see the examples directory in this repository. ## Support Guilded.py has a support channel under its dedicated group for any questions you may have. 1. Join [this server](https://guilded.gg/guilded-api) 2. Click on the far-left plus sign ![](https://img.guildedcdn.com/ContentMedia/f4f92fa74bf1b6043b438046eebcf0f4-Full.webp?w=198&h=165) 3. Click the "Follow" button on the guilded.py group ![](https://img.guildedcdn.com/ContentMedia/ecfc6237dd2f401fbd356edfd50916fc-Full.webp?w=816&h=339) %prep %autosetup -n guilded.py-1.8.0 %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-guilded.py -f filelist.lst %dir %{python3_sitelib}/* %files help -f doclist.lst %{_docdir}/* %changelog * Fri May 05 2023 Python_Bot - 1.8.0-1 - Package Spec generated