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 comando para o Discord.py muito mais simples!! (ENG) - A library to create a much simpler command for Discord.py!!

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(ctx, *args):
    if args:
        await ctx.channel.send(f"Pong🏓" + ''.join(args[0]), reference=ctx)
    else:
        await ctx.channel.send(f"Pong🏓", reference=ctx)

@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.8.tar.gz (3.1 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.8-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: simplecmd_discordpy-1.0.8.tar.gz
  • Upload date:
  • Size: 3.1 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.8.tar.gz
Algorithm Hash digest
SHA256 df2f342d23401b64c036996f630b8d75e49bcb358f4ddf0801debfa06d257d09
MD5 c42d6bbf80e7e740f0d6ceff0b8bbba6
BLAKE2b-256 0b78b0c4c088e282ebe642b3b8db8772ab6b1d84da42c6e16ddc35c3be74099c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simplecmd_discordpy-1.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 a95bea2717cc3812944527207c3260ef686121367bfff364cbfb05724c1afde5
MD5 48041639ff99f0c3c9062c160dae188c
BLAKE2b-256 4ad4de0c593ec7faf92982548a06b4cf98ee316eafee482c4caa4b3e52a8a82d

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