From 367816995d77c82ffe87638f5ae9eb527a3ae7ce Mon Sep 17 00:00:00 2001 From: ishaan Date: Tue, 18 May 2021 18:32:08 -0400 Subject: [PATCH] added ping --- cogs/{exampleCog.py => pingCog.py} | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename cogs/{exampleCog.py => pingCog.py} (76%) diff --git a/cogs/exampleCog.py b/cogs/pingCog.py similarity index 76% rename from cogs/exampleCog.py rename to cogs/pingCog.py index 19b2af8..c17b826 100644 --- a/cogs/exampleCog.py +++ b/cogs/pingCog.py @@ -12,9 +12,9 @@ class ExampleCog(commands.Cog): print('Bot is online.') # Commands - @commands.command() + @commands.command(aliases=['latency']) async def ping(self, ctx): - await ctx.send('Pong!') + await ctx.send(f'Pong! `{round(client.latency * 1000)}ms`') def setup(client): client.add_cog(ExampleCog(client)) \ No newline at end of file