Skip to main content

Uma biblioteca mais simples para a criação de comandos no Discord.py

Project description

Welcome!!

(PT:BR) - Uma biblioteca para criar comandos para o Discord.py!!, lembrando que não quero substituir nada estou apenas tentando criar algo com a estrutura mais simples para os iniciantes (ENG) - A library to create commands for Discord.py!!, remembering that I don't want to replace anything, I'm just trying to create something with the simplest structure for beginners

Usage example

import simplecmd_discordpy as scmd
import discord

scmd.config.set(logs=True, prefix=f"$") # Seta as configurações necessárias

intents = discord.Intents.default()
client = discord.Client(intents=intents)

@scmd.command("ping") # Função para criar comandos
async def ping_cmd(msg, *args):
    if args:
        await msg.channel.send(f"Pong🏓" + ''.join(args[0]), reference=msg)
    else:
        await msg.channel.send(f"Pong🏓", reference=msg)

@client.event
async def on_ready():
    print(f"[{client.user.name}] - Online!!")

@client.event
async def on_message(message):
    if message.author.bot:
        return
    if message.author.id == client.user.id:
        return
    await scmd.load(message) # Carrega Todos Os Comandos

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

simplecmd_discordpy-1.0.9.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

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

simplecmd_discordpy-1.0.9-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file simplecmd_discordpy-1.0.9.tar.gz.

File metadata

  • Download URL: simplecmd_discordpy-1.0.9.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.0 CPython/3.12.7

File hashes

Hashes for simplecmd_discordpy-1.0.9.tar.gz
Algorithm Hash digest
SHA256 542026ca2f34fdb3d7cbca8d6beabfba15019c1f87ae625d5aa4081cbce8b2ba
MD5 d5a7a815e99006aa4ccc65b642ccd1bb
BLAKE2b-256 17066a600dc75be74e8b714e14c39dd4f248861ffc894a6b148af8497e61e667

See more details on using hashes here.

File details

Details for the file simplecmd_discordpy-1.0.9-py3-none-any.whl.

File metadata

File hashes

Hashes for simplecmd_discordpy-1.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 29535638739a1ceaa2145e5f2b0e8cfa346021da0dc9d99646d3c6eb8ff0177a
MD5 23811d1fd725e5e89ef0044c840e9a02
BLAKE2b-256 d6c3495c501a36ca647ffc5d9f6c20a1958bbc326afc8778e36ba9d9e825ddef

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