Skip to main content

Code.py

GitHub release PyPI Python License

Code.py e uma biblioteca pioneira para criacao de bots Discord em 2025, 100% brasileira, projetada para ser simples, poderosa e moderna. Com suporte a IA, voz, OAuth2 e interacoes modernas, e ideal para desenvolvedores que querem criar bots inovadores.

Instalacao

Instale via pip:

pip install code-py

Pre-requisitos

  • Python: 3.12.7 ou superior
  • Dependencias: aiohttp>=3.11.17, redis>=5.2.1, pydub>=0.25.1, pyopus>=0.3.0

Funcionalidades

  • Voz Avancada: TTS com ElevenLabs, STT com Whisper, reproducao multimidia (pydub, Opus, VLC).
  • IA Integrada: Geracao de texto com Grok (xAI).
  • OAuth2 Nativo: Autenticacao fluida.
  • Comandos Modernos: Slash commands, autocomplete, sincronizacao incremental.
  • Escalabilidade: Sharding, cache com Redis.

Exemplo

from codepy import Code, Inter, Embed, Cmd

bot = Code.criar_bot(prefix="!")

@bot.cmd("ola", desc="Diz ola", opts=[{"nome": "user", "desc": "Usuario", "tipo": "user"}])
async def ola(inter: Inter, user: User):
    embed = Embed(tit="Ola", desc=f"Saudacoes, {user.nome}!", cor=0x00FF00)
    await inter.resp("Ola!", embed=embed)

Code.rodar(bot, "SEU_TOKEN_AQUI")

Contribuicao

  1. Fork: github.com/LucasDesignerF/code-py
  2. Clone, crie uma branch, e envie um Pull Request.

Contato

Release files for codepy-redebots 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for codepy-redebots 1.0.0
File Size Uploaded
codepy_redebots-1.0.0.tar.gz 12.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for codepy-redebots 1.0.0
File Interpreter ABI Platform
codepy_redebots-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 27.5 kB

Release files / codepy_redebots-1.0.0.tar.gz

Download URL codepy_redebots-1.0.0.tar.gz
Size 12.2 kB
Tags Source
SHA-256 checksum
How to use checksums
71b00c0ab26c2d951d1a2a04ac01924e0c739d2f96ae389a4fdd2da242b69127
BLAKE2b-256 checksum
How to use checksums
9e36bb413b19cbb05c7fd1a4f3e6ce62511a20519cfb732b0bbb360840cf7b40
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.7

Release files / codepy_redebots-1.0.0-py3-none-any.whl

Download URL codepy_redebots-1.0.0-py3-none-any.whl
Size 15.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
de536d8159af623f57d85c3788de8da81635085931154d3ed730e4bcdd5d15e2
BLAKE2b-256 checksum
How to use checksums
5936bd0ccaddef48651ef8aa7f973b8f768309d6c2ebd55764b3f1ca3452cd82
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.7

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page