Files
WheatlyBot/cogs/ping.py
2025-03-29 10:58:56 +10:00

13 lines
339 B
Python

import discord
from discord.ext import commands
class Ping(commands.Cog):
def __init__(self, bot):
self.bot = bot
@commands.slash_command(name="ping", description="Ping the bot")
async def ping(self, ctx: discord.ApplicationContext):
await ctx.respond("🏓 Pong!")
def setup(bot):
bot.add_cog(Ping(bot))