mirror of
https://github.com/Technicolor-creamsicle/Osselbot.git
synced 2026-04-21 00:09:06 -04:00
fixed the ping command
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user