From 8d1265396c0aa354a053cc0cf5774fb3de081c9a Mon Sep 17 00:00:00 2001 From: Danil Nikolaev Date: Mon, 12 Jan 2026 18:13:47 +0300 Subject: [PATCH] update ping.ts --- src/commands/ping.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/commands/ping.ts b/src/commands/ping.ts index ed3cf75..a489c1a 100644 --- a/src/commands/ping.ts +++ b/src/commands/ping.ts @@ -8,9 +8,9 @@ export class Ping implements ChatCommand { description = "Ping between received and sent message"; async execute(msg: Message) { - const then = new Date().getMilliseconds(); + const then = Date.now(); await oldSendMessage(msg, "pong").catch(logError); - const now = new Date().getMilliseconds(); + const now = Date.now(); const diff = Math.abs(now - then); await oldSendMessage(msg, `ping: ${diff}ms`).catch(logError); }