Initial commit.
This commit is contained in:
13
cogs/ping.py
Normal file
13
cogs/ping.py
Normal file
@@ -0,0 +1,13 @@
|
||||
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))
|
||||
Reference in New Issue
Block a user