added ping
This commit is contained in:
parent
f9a2e68c8b
commit
367816995d
1 changed files with 2 additions and 2 deletions
|
|
@ -12,9 +12,9 @@ class ExampleCog(commands.Cog):
|
||||||
print('Bot is online.')
|
print('Bot is online.')
|
||||||
|
|
||||||
# Commands
|
# Commands
|
||||||
@commands.command()
|
@commands.command(aliases=['latency'])
|
||||||
async def ping(self, ctx):
|
async def ping(self, ctx):
|
||||||
await ctx.send('Pong!')
|
await ctx.send(f'Pong! `{round(client.latency * 1000)}ms`')
|
||||||
|
|
||||||
def setup(client):
|
def setup(client):
|
||||||
client.add_cog(ExampleCog(client))
|
client.add_cog(ExampleCog(client))
|
||||||
Loading…
Add table
Add a link
Reference in a new issue