From b04a517650914bf67a3bef80657defd4aabc8326 Mon Sep 17 00:00:00 2001 From: "zeon-neon[bot]" <136533918+zeon-neon[bot]@users.noreply.github.com> Date: Mon, 9 Sep 2024 01:14:33 +0000 Subject: [PATCH] enhancement(lint): Fix lint errors for src/commands/ping.ts Co-authored-by: NeonGamerBot-QK Signed-off-by: zeon-neon[bot] <136533918+zeon-neon[bot]@users.noreply.github.com> --- src/commands/ping.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/commands/ping.ts b/src/commands/ping.ts index 3d9f63b..4f99431 100644 --- a/src/commands/ping.ts +++ b/src/commands/ping.ts @@ -11,11 +11,10 @@ export default class Ping implements Command { run(app: App) { // app.command() app.command(this.name, async ({ command, ack, respond }) => { + const stamp = Date.now(); + await ack(); - const stamp = Date.now(); - await ack(); - - if (!onlyForMe(command.user_id)) + if (!onlyForMe(command.user_id)) return respond(`:x: You cannot use this command.`); respond(`Pong took: \`${Date.now() - stamp}ms\``).then((d) => {});