This commit is contained in:
Alex Brow 2020-03-23 00:28:45 -04:00
parent d2236dbaa3
commit f5cccd6255
No known key found for this signature in database
GPG Key ID: F48926893F475C25
1 changed files with 1 additions and 1 deletions

View File

@ -67,7 +67,7 @@ client.on("message", async message => {
// Calculates ping between sending a message and editing it, giving a nice round-trip latency.
// The second ping is an average latency between the bot and the websocket server (one-way, not round-trip)
const m = await message.channel.send("Ping?");
m.edit(`Pong! Latency is ${m.createdTimestamp - message.createdTimestamp}ms. API Latency is ${WebSocketManager.ping}ms`);
m.edit(`Pong! Latency is ${m.createdTimestamp - message.createdTimestamp}ms. API Latency is ${webSocketManager.ping}ms`);
}
if(command === "say") {