Lacie/commands/ping.py
2025-09-29 11:22:41 +02:00

14 lines
434 B
Python

import discord
from discord.ext import commands
from discord import app_commands
class Ping(commands.Cog):
def __init__(self, bot: commands.Bot):
self.bot = bot
@app_commands.command(name="ping", description="Replies with Pong!")
async def ping(self, interaction: discord.Interaction):
await interaction.response.send_message("Pong!")
async def setup(bot: commands.Bot):
await bot.add_cog(Ping(bot))