mirror of
https://github.com/Lilac-Rose/Lacie.git
synced 2026-07-26 04:50:56 -05:00
14 lines
434 B
Python
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)) |