- Core bot with slash command tree (discord.py 2.7.x compatible) - Commands: /ping, /info, /hello, /emoji, /app-emoji - Admin: /upload-emoji, /list-emojis, /delete-emoji - GIF emote detection and reaction handling - Message reactions with percentage-based triggers and cooldowns - Voice/music cog with YTDLSource, skip, volume, pause, resume, stop - Global error handler and voice state change logging - Environment config via .env (DISCORD_TOKEN, COMMAND_PREFIX, etc.)
17 lines
378 B
Python
17 lines
378 B
Python
"""Hello slash command."""
|
|
|
|
import discord
|
|
from discord.app_commands import Command
|
|
from discord.ext import commands
|
|
|
|
|
|
async def hello(interaction: discord.Interaction, name: str = "World") -> None:
|
|
"""Greet a user by name."""
|
|
await interaction.response.send_message(
|
|
f"Hello, {name}!",
|
|
ephemeral=True,
|
|
)
|
|
|
|
|
|
hello.__signature__ = None # type: ignore
|