mirror of
https://github.com/Technicolor-creamsicle/Osselbot.git
synced 2024-06-14 00:20:42 +00:00
egg
d
This commit is contained in:
parent
64fd987403
commit
501790fd26
|
@ -67,7 +67,7 @@ client.on("message", async message => {
|
||||||
// Calculates ping between sending a message and editing it, giving a nice round-trip latency.
|
// 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)
|
// 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?");
|
const m = await message.channel.send("Ping?");
|
||||||
m.edit(`Pong! Latency is ${m.createdTimestamp - message.createdTimestamp}ms.;
|
m.edit(`Pong! Latency is ${m.createdTimestamp - message.createdTimestamp}ms`);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(command === "say") {
|
if(command === "say") {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user