Пинг от WebSocket'а

This commit is contained in:
JonnyBro 2022-04-08 01:32:19 +05:00
parent 19aba0d3e6
commit 879a0d2076
3 changed files with 4 additions and 3 deletions

View file

@ -21,7 +21,8 @@ class Ping extends Command {
ping: "..."
}).then((m) => {
m.sendT("general/ping:CONTENT", {
ping: m.createdTimestamp - message.createdTimestamp
ping: m.createdTimestamp - message.createdTimestamp,
cping: Math.round(this.client.ws.ping)
}, { edit: true });
});
}

View file

@ -2,5 +2,5 @@
"DESCRIPTION": "Показать пинг бота",
"USAGE": "{{prefix}}ping",
"EXAMPLES": "{{prefix}}ping",
"CONTENT": "Понг! Мой пинг - `{{ping}}` ms."
"CONTENT": "Понг! Мой пинг - **{{ping}}**ms (**{{cping}}**ms)."
}

View file

@ -2,5 +2,5 @@
"DESCRIPTION": "Показати пінг бота",
"USAGE": "{{prefix}}ping",
"EXAMPLES": "{{prefix}}ping",
"CONTENT": "Понг! Мій пінг - `{{ping}}` ms."
"CONTENT": "Понг! Мій пінг - **{{ping}}**ms (**{{cping}}**ms)."
}