made [p]ping
reply to users
This commit is contained in:
parent
226e8b34d9
commit
71c3855375
1 changed files with 1 additions and 1 deletions
2
main.py
2
main.py
|
@ -22,7 +22,7 @@ class Client(commands.CommandsClient):
|
|||
async def ping(self, ctx: commands.Context):
|
||||
# This command checks the bot's latency.
|
||||
before = time.monotonic()
|
||||
await ctx.send("🏓")
|
||||
await ctx.message.reply("🏓")
|
||||
mrm_list = await ctx.channel.history(limit=1)
|
||||
mrm = mrm_list[0]
|
||||
ping = (time.monotonic() - before) * 1000
|
||||
|
|
Loading…
Reference in a new issue