fixed ping and moderation

This commit is contained in:
rzmk 2021-05-18 20:54:14 -04:00
parent d1011f3430
commit 4cddba1004
4 changed files with 20 additions and 11 deletions

View file

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