From dd0a41a8529e71186d39ec57951e34e5b115f78e Mon Sep 17 00:00:00 2001 From: "zeon-neon[bot]" <136533918+zeon-neon[bot]@users.noreply.github.com> Date: Mon, 9 Sep 2024 00:47:15 +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 | 31 +++++++++++++++---------------- 1 file changed, 15 insertions(+), 16 deletions(-) diff --git a/src/commands/ping.ts b/src/commands/ping.ts index 1dbf3f0..4907dae 100644 --- a/src/commands/ping.ts +++ b/src/commands/ping.ts @@ -1,20 +1,19 @@ import { App } from "@slack/bolt"; import { Command } from "../modules/BaseCommand"; -export default class Ping implements Command { - name: string; - description: string; -constructor() { -this.name = `/ping` -this.description = `Pings zeon` +export default class Ping implements Command { + name: string; + description: string; + constructor() { + this.name = `/ping`; + this.description = `Pings zeon`; + } + run(app: App) { + // app.command() + app.command("/ping", async ({ command, ack, respond }) => { + const stamp = Date.now(); + await ack(); + respond(`Pong took: \`${Date.now() - stamp}ms\``).then((d) => {}); + }); + } } -run(app: App) { -// app.command() -app.command('/ping',async ({ command, ack, respond }) => { - const stamp = Date.now() - await ack() - respond(`Pong took: \`${Date.now() - stamp}ms\``).then(d => { - }) -}) -} -} \ No newline at end of file