mirror of
https://github.com/JonnyBro/JaBa.git
synced 2024-11-22 05:04:58 +05:00
Пинг от WebSocket'а
This commit is contained in:
parent
19aba0d3e6
commit
879a0d2076
3 changed files with 4 additions and 3 deletions
|
@ -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 });
|
||||
});
|
||||
}
|
||||
|
|
|
@ -2,5 +2,5 @@
|
|||
"DESCRIPTION": "Показать пинг бота",
|
||||
"USAGE": "{{prefix}}ping",
|
||||
"EXAMPLES": "{{prefix}}ping",
|
||||
"CONTENT": "Понг! Мой пинг - `{{ping}}` ms."
|
||||
"CONTENT": "Понг! Мой пинг - **{{ping}}**ms (**{{cping}}**ms)."
|
||||
}
|
|
@ -2,5 +2,5 @@
|
|||
"DESCRIPTION": "Показати пінг бота",
|
||||
"USAGE": "{{prefix}}ping",
|
||||
"EXAMPLES": "{{prefix}}ping",
|
||||
"CONTENT": "Понг! Мій пінг - `{{ping}}` ms."
|
||||
"CONTENT": "Понг! Мій пінг - **{{ping}}**ms (**{{cping}}**ms)."
|
||||
}
|
Loading…
Reference in a new issue