-
Notifications
You must be signed in to change notification settings - Fork 0
Base API and Commands
Eldritch Tenebris edited this page Mar 2, 2025
·
1 revision
Este documento explica como utilizar a Base API para criar comandos e funcionalidades para seu bot.
from src.base import create_command
def setup(cmd):
@cmd.create_command(
name="ping",
description="Verifica a latência do bot"
)
async def ping_command(interaction):
await interaction.response.send_message(f"Pong! {round(interaction.client.latency * 1000)}ms")