mirror of
https://github.com/Technicolor-creamsicle/Osselbot.git
synced 2024-11-16 09:15:57 -05:00
fixed the ping command
This commit is contained in:
parent
deb0118652
commit
e2b95f5aec
@ -92,7 +92,7 @@ client.on("message", async message => {
|
||||
if(command === "ping") {
|
||||
// Calculates ping between sending a message and editing it, giving a nice round-trip latency.
|
||||
const m = await message.channel.send("Ping?");
|
||||
m.edit(`Pong! Latency is ${m.createdTimestamp - message.createdTimestamp}ms`);
|
||||
m.edit(`Pong! Latency is ${client.ws.ping}ms`);
|
||||
}
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
//HOW QUOTEABLE
|
||||
|
Loading…
Reference in New Issue
Block a user