From f5cccd6255b62da29211a690a978726d0aea10c2 Mon Sep 17 00:00:00 2001 From: Alex Brow Date: Mon, 23 Mar 2020 00:28:45 -0400 Subject: [PATCH] a --- src/bot.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bot.js b/src/bot.js index 0f78a2f..4bdcd4b 100755 --- a/src/bot.js +++ b/src/bot.js @@ -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") {