Metadata-Version: 2.4
Name: zynko
Version: 0.1.0
Summary: Biblioteca oficial para bots do Zynko: API, gateway e voz.
Project-URL: Documentation, https://docs.zynko.org/bots/python
Project-URL: Homepage, https://zynko.org
License-Expression: MIT
Keywords: asyncio,bot,chat,voice,zynko
Classifier: Development Status :: 4 - Beta
Classifier: Framework :: AsyncIO
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Typing :: Typed
Requires-Python: >=3.10
Requires-Dist: aiohttp<4,>=3.11
Provides-Extra: dev
Requires-Dist: mypy>=1.13; extra == 'dev'
Requires-Dist: pytest-asyncio>=0.24; extra == 'dev'
Requires-Dist: pytest>=8.3; extra == 'dev'
Provides-Extra: voice
Requires-Dist: livekit==1.2.1; extra == 'voice'
Description-Content-Type: text/markdown

# zynko

A biblioteca oficial para bots do [Zynko](https://zynko.org) em Python: gateway com
reconexão, cache de servidores, canais e membros, a API inteira, comandos com "/", cartões e
botões, e voz (tocar e ouvir áudio nas salas). Feita com asyncio.

```sh
pip install zynko
pip install "zynko[voice]"   # com voz
```

```python
import os
import zynko

client = zynko.Client(intents=zynko.Intents.GUILDS | zynko.Intents.MESSAGES)

@client.on("message_create")
async def ping(msg: zynko.Message):
    if not msg.mine and msg.content == "!ping":
        await msg.reply("pong")

client.run(os.environ["ZYNKO_TOKEN"])
```

Voz:

```python
voice = await client.join_voice(channel_id)
voice.player.enqueue("https://exemplo.com/musica.mp3")
```

Python 3.10 ou mais novo. Para tocar arquivos e links, o ffmpeg precisa estar instalado.
Exemplos em [`examples/`](examples): `ping.py`, `dado.py` (comandos, cartão e botões) e
`musica.py`.

Documentação: https://docs.zynko.org/bots/python · Crie seu bot: https://dev.zynko.org

Licença MIT.
