mirror of
https://github.com/Technicolor-creamsicle/Osselbot.git
synced 2024-12-22 15:36:24 -05:00
a
This commit is contained in:
parent
c2c3815839
commit
7b089d8e72
@ -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 ${Math.round(WebSocketManager.ping)}ms`);
|
||||
m.edit(`Pong! Latency is ${m.createdTimestamp - message.createdTimestamp}ms. API Latency is ${Math.round(client.ping)}ms`);
|
||||
}
|
||||
|
||||
if(command === "say") {
|
||||
|
Loading…
Reference in New Issue
Block a user