13 lines
339 B
Python
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)) |