added ping

This commit is contained in:
ishaan 2021-05-18 18:32:08 -04:00
parent f9a2e68c8b
commit 367816995d

View file

@ -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))