Merge pull request #6 from iakrules/ping

Update pingCog.py
This commit is contained in:
ishaan 2021-05-18 18:48:17 -04:00 committed by GitHub
commit b874ded4ab
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -14,7 +14,7 @@ class PingCog(commands.Cog):
# Commands # Commands
@commands.command(aliases=['latency']) @commands.command(aliases=['latency'])
async def ping(self, ctx): async def ping(self, ctx):
await ctx.send(f'Pong! `{round(client.latency * 1000)}ms`') await ctx.send(f'Pong! {round(client.latency * 1000)}ms')
def setup(client): def setup(client):
client.add_cog(PingCog(client)) client.add_cog(PingCog(client))