Oops, didn't add all files.

This commit is contained in:
2023-04-15 21:44:37 -04:00
parent 5d7ad13982
commit 1acac43df1
11 changed files with 312 additions and 0 deletions
+26
View File
@@ -0,0 +1,26 @@
from nextcord.ext import commands
from utils import embed_success
class Ping(commands.Cog, name="Ping"):
def __init__(self, bot: commands.Bot):
self.bot = bot
@commands.command(name="ping")
async def ping(self, ctx: commands.Context):
"""A command which simply acknowledges the user's ping.
Usage:
```
?ping
```
"""
# log in console that a ping was received
print("Received ping")
# respond to the message
await ctx.send(embed=embed_success("Pong!"))
# This function will be called when this extension is loaded.
# It is necessary to add these functions to the bot.
def setup(bot: commands.Bot):
bot.add_cog(Ping(bot))