Skip to main content

Biblioteca pioneira para bots Discord 2025, 100% brasileira, com suporte a IA, voz, OAuth2 e interações modernas.

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

codepy_redebots-1.0.0.tar.gz (12.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

codepy_redebots-1.0.0-py3-none-any.whl (15.3 kB view details)

Uploaded Python 3

File details

Details for the file codepy_redebots-1.0.0.tar.gz.

File metadata

  • Download URL: codepy_redebots-1.0.0.tar.gz
  • Upload date:
  • Size: 12.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.7

File hashes

Hashes for codepy_redebots-1.0.0.tar.gz
Algorithm Hash digest
SHA256 71b00c0ab26c2d951d1a2a04ac01924e0c739d2f96ae389a4fdd2da242b69127
MD5 47ba8af1ae70336abbd1433c39cedf1a
BLAKE2b-256 9e36bb413b19cbb05c7fd1a4f3e6ce62511a20519cfb732b0bbb360840cf7b40

See more details on using hashes here.

File details

Details for the file codepy_redebots-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for codepy_redebots-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 de536d8159af623f57d85c3788de8da81635085931154d3ed730e4bcdd5d15e2
MD5 2ef5348d06ce3090856c2773e00b20c2
BLAKE2b-256 5936bd0ccaddef48651ef8aa7f973b8f768309d6c2ebd55764b3f1ca3452cd82

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page