Мелкие правки

This commit is contained in:
JonnyBro 2022-04-08 01:36:49 +05:00
parent 702823ef66
commit a861ff043c
3 changed files with 5 additions and 4 deletions

View file

@ -18,11 +18,12 @@ class Ping extends Command {
async run(message) { async run(message) {
message.sendT("general/ping:CONTENT", { message.sendT("general/ping:CONTENT", {
ping: "..." ping: "...",
wsping: "..."
}).then((m) => { }).then((m) => {
m.sendT("general/ping:CONTENT", { m.sendT("general/ping:CONTENT", {
ping: m.createdTimestamp - message.createdTimestamp, ping: m.createdTimestamp - message.createdTimestamp,
cping: Math.round(this.client.ws.ping) wsping: Math.round(this.client.ws.ping)
}, { edit: true }); }, { edit: true });
}); });
} }

View file

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

View file

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